Skip to content
Snippets Groups Projects
Commit 20fe22a2 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2578519 by phenaproxima, webchick: Node has invalid config schema for...

Issue #2578519 by phenaproxima, webchick: Node has invalid config schema for node_unpublish_by_keyword_action
parent 19167f72
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ action.configuration.node_unpublish_by_keyword_action:
type: mapping
label: 'Unpublish content containing keyword(s) configuration'
mapping:
keyword:
keywords:
type: sequence
label: 'Keywords'
sequence:
......
<?php
/**
* @file
* Contains \Drupal\Tests\node\Kernel\Action\UnpublishByKeywordActionTest.
*/
namespace Drupal\Tests\node\Kernel\Action;
use Drupal\KernelTests\KernelTestBase;
use Drupal\system\Entity\Action;
/**
* @group node
*/
class UnpublishByKeywordActionTest extends KernelTestBase {
/**
* {@inheritdoc}
*/
public static $modules = ['action', 'node', 'system', 'user'];
/**
* Tests creating an action using the node_unpublish_by_keyword_action plugin.
*
* @see https://www.drupal.org/node/2578519
*/
public function testUnpublishByKeywordAction() {
Action::create([
'id' => 'foo',
'label' => 'Foobaz',
'plugin' => 'node_unpublish_by_keyword_action',
])->save();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment