/** * Tests the getDefinition() method with an invalid definition. * * @covers ::getDefinition * * @expectedException \Drupal\Component\Plugin\Exception\PluginNotFoundException * @expectedExceptionMessage The "pear" entity type does not exist. */ public function testGetDefinitionInvalidException() { $this->setUpEntityManager(); $this->entityManager->getDefinition('pear', TRUE); }