mirror of
https://github.com/getgrav/grav.git
synced 2026-03-05 12:01:37 +01:00
First sample test, test Utils
This commit is contained in:
26
tests/unit/UtilsTest.php
Normal file
26
tests/unit/UtilsTest.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use Grav\Common\Utils;
|
||||
|
||||
class UtilsTest extends \Codeception\TestCase\Test
|
||||
{
|
||||
/**
|
||||
* @var \UnitTester
|
||||
*/
|
||||
protected $tester;
|
||||
|
||||
protected function _before()
|
||||
{
|
||||
}
|
||||
|
||||
protected function _after()
|
||||
{
|
||||
}
|
||||
|
||||
// tests
|
||||
public function testValidation()
|
||||
{
|
||||
$this->assertTrue(Utils::startsWith('english', 'en'));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user