public function Drupal7Test::providerTestEntityIsDummy in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.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
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
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,
),
);
}