function AddModerationConfigActionTest::testActionOnlyTargetsWorkflows
Same name in other branches
- 11.x core/modules/content_moderation/tests/src/Kernel/ConfigAction/AddModerationConfigActionTest.php \Drupal\Tests\content_moderation\Kernel\ConfigAction\AddModerationConfigActionTest::testActionOnlyTargetsWorkflows()
File
-
core/
modules/ content_moderation/ tests/ src/ Kernel/ ConfigAction/ AddModerationConfigActionTest.php, line 76
Class
- AddModerationConfigActionTest
- @covers \Drupal\content_moderation\Plugin\ConfigAction\AddModeration @covers \Drupal\content_moderation\Plugin\ConfigAction\AddModerationDeriver @group content_moderation @group Recipe
Namespace
Drupal\Tests\content_moderation\Kernel\ConfigActionCode
public function testActionOnlyTargetsWorkflows() : void {
$recipe = $this->createRecipe('user.role.anonymous');
$this->expectException(PluginNotFoundException::class);
$this->expectExceptionMessage('The "addNodeTypes" plugin does not exist.');
RecipeRunner::processRecipe($recipe);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.