function DatabaseRegressionTestCase::testDBTableExists in SimpleTest 7
Test the db_table_exists() function.
File
- tests/
database_test.test, line 2315
Class
- DatabaseRegressionTestCase
- Regression tests.
Code
function testDBTableExists() {
$this
->assertTrue(db_table_exists('node'), t('Returns true for existent table.'));
$this
->assertFalse(db_table_exists('nosuchtable'), t('Returns false for nonexistent table.'));
}