You are here

public function Drupal7Test::providerTestEntityIsDummy in Realistic Dummy Content 8.2

Same name and namespace in other branches
  1. 7.2 api/src/test/Framework/Drupal7Test.php \Drupal\realistic_dummy_content_api\Framework\Drupal7Test::providerTestEntityIsDummy()

Data provider for $this->testEntityIsDummy().

File

api/src/test/Framework/Drupal7Test.php, line 45

Class

Drupal7Test
Tests for \Drupal\realistic_dummy_content_api\Framework\Drupal7.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function providerTestEntityIsDummy() {
  return array(
    array(
      (object) array(
        'mail' => 'whatever@example.com.invalid',
      ),
      'user',
      TRUE,
    ),
    array(
      (object) array(
        'mail' => 'whatever@example.com',
        'devel_generate' => TRUE,
      ),
      'user',
      TRUE,
    ),
    array(
      (object) array(
        'mail' => 'whatever@example.com',
      ),
      'user',
      FALSE,
    ),
    array(
      (object) array(
        'devel_generate' => TRUE,
      ),
      'node',
      TRUE,
    ),
    array(
      (object) array(),
      'node',
      FALSE,
    ),
  );
}