mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
18 lines
300 B
PHP
18 lines
300 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* @mixin PHPUnit_Framework_TestCase
|
||
|
*/
|
||
|
class DatabaseCheckTest extends SapphireTest {
|
||
|
public function testCheckReportsValidConnection() {
|
||
|
$check = new DatabaseCheck();
|
||
|
|
||
|
$expected = array(
|
||
|
EnvironmentCheck::OK,
|
||
|
'',
|
||
|
);
|
||
|
|
||
|
$this->assertEquals($expected, $check->check());
|
||
|
}
|
||
|
}
|