Skip to content

Commit 02daf8f

Browse files
committed
Fix test for CI
1 parent f974101 commit 02daf8f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/system/HomeTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ class HomeTest extends CIUnitTestCase
1111

1212
public function testPageLoadsSuccessfully()
1313
{
14-
$response = $this->get('/');
14+
$this->withRoutes([
15+
[
16+
'get',
17+
'home',
18+
'\App\Controllers\Home::index',
19+
],
20+
]);
21+
22+
$response = $this->get('home');
23+
$this->assertInstanceOf('CodeIgniter\Test\FeatureResponse', $response);
1524
$this->assertTrue($response->isOK());
1625
}
1726
}

0 commit comments

Comments
 (0)