function ConfigActionTest::testParentAttributes

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php \Drupal\KernelTests\Core\Config\Action\ConfigActionTest::testParentAttributes()

See also

\Drupal\Core\Config\Action\ConfigActionManager::getShorthandActionIdsForEntityType()

File

core/tests/Drupal/KernelTests/Core/Config/Action/ConfigActionTest.php, line 308

Class

ConfigActionTest
Tests the config action system.

Namespace

Drupal\KernelTests\Core\Config\Action

Code

public function testParentAttributes() : void {
  $definitions = $this->container
    ->get('plugin.manager.config_action')
    ->getDefinitions();
  // The \Drupal\config_test\Entity\ConfigQueryTest::concatProtectedProperty()
  // does not have an attribute but the parent does so this is discovered.
  $this->assertArrayHasKey('entity_method:config_test.query:concatProtectedProperty', $definitions);
}

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