function ConfigActionAttributeTest::testNoLabelNoDeriver
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Config/Action/ConfigActionAttributeTest.php \Drupal\Tests\Core\Config\Action\ConfigActionAttributeTest::testNoLabelNoDeriver()
@covers ::__construct
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Action/ ConfigActionAttributeTest.php, line 20
Class
- ConfigActionAttributeTest
- @coversDefaultClass \Drupal\Core\Config\Action\Attribute\ConfigAction @group Config
Namespace
Drupal\Tests\Core\Config\ActionCode
public function testNoLabelNoDeriver() : void {
$this->expectException(InvalidPluginDefinitionException::class);
$this->expectExceptionMessage("The 'test' config action plugin must have either an admin label or a deriver");
new ConfigAction('test');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.