function DatabaseTestCase::setUp
Overrides DrupalWebTestCase::setUp
5 calls to DatabaseTestCase::setUp()
- DatabaseBasicSyntaxTestCase::setUp in modules/
simpletest/ tests/ database_test.test - Sets up a Drupal site for running functional and integration tests.
- DatabaseFetch2TestCase::setUp in modules/
simpletest/ tests/ database_test.test - Sets up a Drupal site for running functional and integration tests.
- DatabaseInvalidDataTestCase::setUp in modules/
simpletest/ tests/ database_test.test - Sets up a Drupal site for running functional and integration tests.
- DatabaseQueryTestCase::setUp in modules/
simpletest/ tests/ database_test.test - Sets up a Drupal site for running functional and integration tests.
- DatabaseReservedKeywordTestCase::setUp in modules/
simpletest/ tests/ database_test.test - Sets up a Drupal site for running functional and integration tests.
6 methods override DatabaseTestCase::setUp()
- DatabaseBasicSyntaxTestCase::setUp in modules/
simpletest/ tests/ database_test.test - Sets up a Drupal site for running functional and integration tests.
- DatabaseFetch2TestCase::setUp in modules/
simpletest/ tests/ database_test.test - Sets up a Drupal site for running functional and integration tests.
- DatabaseInvalidDataTestCase::setUp in modules/
simpletest/ tests/ database_test.test - Sets up a Drupal site for running functional and integration tests.
- DatabaseQueryTestCase::setUp in modules/
simpletest/ tests/ database_test.test - Sets up a Drupal site for running functional and integration tests.
- DatabaseReservedKeywordTestCase::setUp in modules/
simpletest/ tests/ database_test.test - Sets up a Drupal site for running functional and integration tests.
File
-
modules/
simpletest/ tests/ database_test.test, line 22
Class
- DatabaseTestCase
- Base test class for databases.
Code
function setUp() {
parent::setUp('database_test');
$schema['test'] = drupal_get_schema('test');
$schema['test_classtype'] = drupal_get_schema('test_classtype');
$schema['test_people'] = drupal_get_schema('test_people');
$schema['test_people_copy'] = drupal_get_schema('test_people_copy');
$schema['test_one_blob'] = drupal_get_schema('test_one_blob');
$schema['test_two_blobs'] = drupal_get_schema('test_two_blobs');
$schema['test_task'] = drupal_get_schema('test_task');
$schema['TEST_UPPERCASE'] = drupal_get_schema('TEST_UPPERCASE');
$this->installTables($schema);
$this->addSampleData();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.