function DefaultHtmlRouteProviderTest::testGetEntityTypeIdKeyTypeNotFieldable
@covers ::getEntityTypeIdKeyType
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ Routing/ DefaultHtmlRouteProviderTest.php, line 327
Class
- DefaultHtmlRouteProviderTest
- @coversDefaultClass \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider[[api-linebreak]] @group Entity
Namespace
Drupal\Tests\Core\Entity\RoutingCode
public function testGetEntityTypeIdKeyTypeNotFieldable() {
$entity_type = $this->prophesize(EntityTypeInterface::class);
$entity_type->entityClassImplements(FieldableEntityInterface::class)
->willReturn(FALSE);
$this->entityFieldManager
->getFieldStorageDefinitions(Argument::any())
->shouldNotBeCalled();
$type = $this->routeProvider
->getEntityTypeIdKeyType($entity_type->reveal());
$this->assertNull($type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.