protected function getTestHandlerClass() { return get_class($this->
getMockForAbstractClass('Drupal\Core\Entity\EntityHandlerBase'
));
} /**
* @covers ::setLinkTemplate
*/
public function testSetLinkTemplateWithInvalidPath() { $entity_type =
$this->
setUpEntityType(['id' =>
$this->
randomMachineName()]);
$this->
expectException(\InvalidArgumentException::
class);
$entity_type->
setLinkTemplate('test', 'invalid-path'
);
} /**
* Tests the constraint methods.
*
* @covers ::getConstraints
* @covers ::setConstraints
* @covers ::addConstraint
*/
public function testConstraintMethods() { $definition =
[