You are here

public function RealisticDummyContentDbTestCase::setUp in Realistic Dummy Content 8

Enable the module

Overrides WebTestBase::setUp

File

api/src/Tests/RealisticDummyContentDbTestCase.php, line 35
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

RealisticDummyContentDbTestCase
Test Realistic dummy content with a temporary database.

Namespace

Drupal\realistic_dummy_content_api\Tests

Code

public function setUp() {
  parent::setUp();

  // Our test needs to check that a given content was replaced, so turn
  // off random number generator during the test.
  \Drupal::state()
    ->set('realistic_dummy_content_api_rand', RealisticDummyContent::REALISTIC_DUMMY_CONTENT_SEQUENTIAL);
}