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:
Sam Minnee 2010-06-03 01:09:31 +00:00
parent 917a0545ce
commit bb8ad14651

View File

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