function DatabaseRegressionTestCase::testDBTableExists

Test the db_table_exists() function.

File

modules/simpletest/tests/database_test.test, line 3110

Class

DatabaseRegressionTestCase
Regression tests.

Code

function testDBTableExists() {
    $this->assertIdentical(TRUE, db_table_exists('node'), 'Returns true for existent table.');
    $this->assertIdentical(FALSE, db_table_exists('nosuchtable'), 'Returns false for nonexistent table.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.