MINOR: Added test for Database::hasTable(). (from r106119)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112519 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 02:57:14 +00:00
parent 2d2ca13e45
commit 06ba0085dd

View File

@ -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 {