You are here

protected function EntityUnitTestBase::getHooksInfo in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntityUnitTestBase.php \Drupal\system\Tests\Entity\EntityUnitTestBase::getHooksInfo()

Returns the entity_test hook invocation info.

Return value

array An associative array of arbitrary hook data keyed by hook name.

1 call to EntityUnitTestBase::getHooksInfo()
EntityTranslationTest::doTestEntityTranslationAPI in core/modules/system/src/Tests/Entity/EntityTranslationTest.php
Executes the Entity Translation API tests for the given entity type.

File

core/modules/system/src/Tests/Entity/EntityUnitTestBase.php, line 141
Contains \Drupal\system\Tests\Entity\EntityUnitTestBase.

Class

EntityUnitTestBase
Defines an abstract test base for entity unit tests.

Namespace

Drupal\system\Tests\Entity

Code

protected function getHooksInfo() {
  $key = 'entity_test.hooks';
  $hooks = $this->state
    ->get($key);
  $this->state
    ->set($key, array());
  return $hooks;
}