public function EntityTypeManagerTest::testGetDefinitionInvalidException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\EntityTypeManagerTest::testGetDefinitionInvalidException()
Tests the getDefinition() method with an invalid definition.
@covers ::getDefinition
@expectedException \Drupal\Component\Plugin\Exception\PluginNotFoundException @expectedExceptionMessage The "pear" entity type does not exist.
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeManagerTest.php, line 377 - Contains \Drupal\Tests\Core\Entity\EntityTypeManagerTest.
Class
- EntityTypeManagerTest
- @coversDefaultClass \Drupal\Core\Entity\EntityTypeManager @group Entity
Namespace
Drupal\Tests\Core\EntityCode
public function testGetDefinitionInvalidException() {
$this
->setUpEntityTypeDefinitions();
$this->entityTypeManager
->getDefinition('pear', TRUE);
}