20 lines
352 B
PHP
Raw Normal View History

2015-09-11 09:13:48 +12:00
<?php
/**
* @mixin PHPUnit_Framework_TestCase
*/
2015-11-21 19:18:35 +13:00
class DatabaseCheckTest extends SapphireTest
{
public function testCheckReportsValidConnection()
{
$check = new DatabaseCheck();
2015-09-11 09:13:48 +12:00
2015-11-21 19:18:35 +13:00
$expected = array(
EnvironmentCheck::OK,
'',
);
2015-09-11 09:13:48 +12:00
2015-11-21 19:18:35 +13:00
$this->assertEquals($expected, $check->check());
}
2015-09-11 09:13:48 +12:00
}