diff --git a/tests/model/DatabaseTest.php b/tests/model/DatabaseTest.php index 572400947..46647c373 100644 --- a/tests/model/DatabaseTest.php +++ b/tests/model/DatabaseTest.php @@ -75,6 +75,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 {