function EntityTypeTest::getTestHandlerClass

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

Gets a mock controller class name.

Return value

string A mock controller class name.

8 calls to EntityTypeTest::getTestHandlerClass()
EntityTypeTest::testGetAccessControlClass in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests the getAccessControlClass() method.
EntityTypeTest::testGetFormClass in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests the getFormClass() method.
EntityTypeTest::testGetHandler in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests the getHandler() method.
EntityTypeTest::testGetListBuilderClass in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests the getListBuilderClass() method.
EntityTypeTest::testGetStorageClass in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests the getStorageClass() method.

... See full list

File

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

Class

EntityTypeTest
@coversDefaultClass \Drupal\Core\Entity\EntityType @group Entity

Namespace

Drupal\Tests\Core\Entity

Code

protected function getTestHandlerClass() : string {
    return get_class($this->getMockForAbstractClass('Drupal\\Core\\Entity\\EntityHandlerBase'));
}

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