You are here

public function Framework::endToEndTests in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::endToEndTests()
  2. 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::endToEndTests()

Run high-level tests.

For example, create entities, make sure they have been improved with realistic dummy content.

Parameters

array $errors: Will be populated with error strings.

array $tests: Will be populated with passing test strings.

1 call to Framework::endToEndTests()
Framework::selfTest in api/src/Framework/Framework.php
Tests all functions in the class.

File

api/src/Framework/Framework.php, line 340

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function endToEndTests(array &$errors, array &$tests) {
  $generator = new RealisticDummyContentDevelGenerateGenerator('user', 'user', 1, [
    'kill' => TRUE,
  ]);
  $generator
    ->generate();
  User::load(Framework::instance()
    ->latestId('users', 'uid'));
  $generator = new RealisticDummyContentDevelGenerateGenerator('node', 'article', 1, [
    'kill' => TRUE,
  ]);
  $generator
    ->generate();
}