function ConfigActionTest::testParentAttributes
Same name in other branches
- 10 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\ActionCode
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.