You are here

public function realistic_dummy_content_DatabaseTestCase::setUp in Realistic Dummy Content 7

Enable the module

Overrides DrupalWebTestCase::setUp

File

api/tests/realistic_dummy_content_api.db.test, line 27
This file contains the testing code which requires the database. These tests are slower than the unit tests so we want to limit them.

Class

realistic_dummy_content_DatabaseTestCase
The test case

Code

public function setUp() {
  parent::setUp('realistic_dummy_content_api', 'realistic_dummy_content', 'devel_generate');

  // Our test needs to check that a given content was replaced, so turn
  // off random number generator during the test.
  variable_set('realistic_dummy_content_api_rand', REALISTIC_DUMMY_CONTENT_SEQUENTIAL);
}