function EntityTypeTest::testGetViewBuilderClass

Tests the getViewBuilderClass() method.

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php, line 261

Class

EntityTypeTest
Tests Drupal\Core\Entity\EntityType.

Namespace

Drupal\Tests\Core\Entity

Code

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.