Skip to content

Commit f974101

Browse files
committed
Add test demonstrating usability in CIUnitTestCase
1 parent 58ada3f commit f974101

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/system/HomeTest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace CodeIgniter;
4+
5+
use CodeIgniter\Test\CIUnitTestCase;
6+
use CodeIgniter\Test\FeatureTestTrait;
7+
8+
class HomeTest extends CIUnitTestCase
9+
{
10+
use FeatureTestTrait;
11+
12+
public function testPageLoadsSuccessfully()
13+
{
14+
$response = $this->get('/');
15+
$this->assertTrue($response->isOK());
16+
}
17+
}

0 commit comments

Comments
 (0)