Skip to content

Commit ba7f5df

Browse files
committed
test: fix test code
1 parent a22a145 commit ba7f5df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/system/CodeIgniterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ public function testRun404Override()
9494
// Inject mock router.
9595
$routes = Services::routes();
9696
$routes->setAutoRoute(false);
97-
$routes->set404Override('Home::index');
97+
$routes->set404Override('Tests\Support\Controllers\Hello::index');
9898
$router = Services::router($routes, Services::request());
9999
Services::injectMock('router', $router);
100100

101101
ob_start();
102-
$this->codeigniter->useSafeOutput(true)->run();
102+
$this->codeigniter->useSafeOutput(true)->run($routes);
103103
$output = ob_get_clean();
104104

105-
$this->assertStringContainsString('Welcome to CodeIgniter', $output);
105+
$this->assertStringContainsString('Hello', $output);
106106
}
107107

108108
public function testRun404OverrideControllerReturnsResponse()

0 commit comments

Comments
 (0)