From b90d8dd94c47809578e188f6102ff91dfa608166 Mon Sep 17 00:00:00 2001 From: yangzhi-rao Date: Sat, 27 Dec 2025 18:45:12 +0800 Subject: [PATCH] update --- tests/commands/ControllerCommandTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/commands/ControllerCommandTest.php b/tests/commands/ControllerCommandTest.php index 7a58aca..f4903a2 100644 --- a/tests/commands/ControllerCommandTest.php +++ b/tests/commands/ControllerCommandTest.php @@ -67,7 +67,7 @@ class ControllerCommandTest extends TestCase $app = $this->newApp('test', '0.0.1'); mkdir(__DIR__ . '/controllers/'); file_put_contents(__DIR__ . '/controllers/TestController.php', 'add(new ControllerCommand(['subway' => ['app_root' => 'tests/commands/']])); + $app->add(new ControllerCommand(['runway' => ['app_root' => 'tests/commands/']])); $app->handle(['runway', 'make:controller', 'Test']); $this->assertStringContainsString('TestController already exists.', file_get_contents(static::$ou)); @@ -76,7 +76,7 @@ class ControllerCommandTest extends TestCase public function testCreateController(): void { $app = $this->newApp('test', '0.0.1'); - $app->add(new ControllerCommand(['subway' => ['app_root' => 'tests/commands/']])); + $app->add(new ControllerCommand(['runway' => ['app_root' => 'tests/commands/']])); $app->handle(['runway', 'make:controller', 'Test']); $this->assertFileExists(__DIR__ . '/controllers/TestController.php');