function EntityTypeTest::testGetViewBuilderClass
Tests the getViewBuilderClass() method.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeTest.php, line 261
Class
Namespace
Drupal\Tests\Core\EntityCode
public function testGetViewBuilderClass() : void {
$entity_type = $this->setUpEntityType([
'handlers' => [
'view_builder' => StubEntityHandlerBase::class,
],
]);
$this->assertSame(StubEntityHandlerBase::class, $entity_type->getViewBuilderClass());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.