function EntityTypeManagerTest::getTestHandlerClass

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\EntityTypeManagerTest::getTestHandlerClass()
  2. 8.9.x core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\EntityTypeManagerTest::getTestHandlerClass()

Gets a mock controller class name.

Return value

string A mock controller class name.

4 calls to EntityTypeManagerTest::getTestHandlerClass()
EntityTypeManagerTest::testGetAccessControlHandler in core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
Tests the getAccessControlHandler() method.
EntityTypeManagerTest::testGetListBuilder in core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
Tests the getListBuilder() method.
EntityTypeManagerTest::testGetStorage in core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
Tests the getStorage() method.
EntityTypeManagerTest::testGetViewBuilder in core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php
Tests the getViewBuilder() method.

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php, line 455

Class

EntityTypeManagerTest
@coversDefaultClass \Drupal\Core\Entity\EntityTypeManager @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

protected function getTestHandlerClass() {
    return get_class($this->getMockForAbstractClass(EntityHandlerBase::class));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.