class ConfigActionAttributeTest
Same name and namespace in other branches
- 10 core/tests/Drupal/Tests/Core/Config/Action/ConfigActionAttributeTest.php \Drupal\Tests\Core\Config\Action\ConfigActionAttributeTest
@coversDefaultClass \Drupal\Core\Config\Action\Attribute\ConfigAction
@group Config
Hierarchy
- class \Drupal\Tests\Core\Config\Action\ConfigActionAttributeTest
Expanded class hierarchy of ConfigActionAttributeTest
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Action/ ConfigActionAttributeTest.php, line 15
Namespace
Drupal\Tests\Core\Config\ActionView source
class ConfigActionAttributeTest extends UnitTestCase {
/**
* @covers ::__construct
*/
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');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ConfigActionAttributeTest::testNoLabelNoDeriver | public | function | @covers ::__construct[[api-linebreak]] |
ExpectDeprecationTrait::expectDeprecation | public | function | Adds an expected deprecation. |
ExpectDeprecationTrait::setUpErrorHandler | public | function | Sets up the test error handler. |
ExpectDeprecationTrait::tearDownErrorHandler | public | function | Tears down the test error handler. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.