mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Added test for Database::hasTable().
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@106119 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
917a0545ce
commit
bb8ad14651
@ -73,6 +73,11 @@ class DatabaseTest extends SapphireTest {
|
||||
$this->assertFalse($db->doesSchemaNeedUpdating());
|
||||
}
|
||||
|
||||
function testHasTable() {
|
||||
$this->assertTrue(DB::getConn()->hasTable('DatabaseTest_MyObject'));
|
||||
$this->assertFalse(DB::getConn()->hasTable('asdfasdfasdf'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class DatabaseTest_MyObject extends DataObject implements TestOnly {
|
||||
|
Loading…
Reference in New Issue
Block a user