File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments