public function Drupal8::frameworkSpecificTests in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::frameworkSpecificTests()
- 3.x api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::frameworkSpecificTests()
Perform framework-specific tests, if any.
File
- api/
src/ Framework/ Drupal8.php, line 91
Class
- Drupal8
- Drupal 8-specific code.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function frameworkSpecificTests(&$errors, &$tests) {
$node = $this
->createDummyNode();
$result = $this
->getEntityType($node);
if ($result == 'node') {
$tests[] = 'Drupal8::getEntityType() works as expected.';
}
else {
$errors[] = 'Drupal8::getEntityType() returned ' . $result;
}
}