public function UnpublishByKeywordActionTest::testUnpublishByKeywordAction in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/node/tests/src/Kernel/Action/UnpublishByKeywordActionTest.php \Drupal\Tests\node\Kernel\Action\UnpublishByKeywordActionTest::testUnpublishByKeywordAction()
Tests creating an action using the node_unpublish_by_keyword_action plugin.
See also
https://www.drupal.org/node/2578519
File
- core/
modules/ node/ tests/ src/ Kernel/ Action/ UnpublishByKeywordActionTest.php, line 28 - Contains \Drupal\Tests\node\Kernel\Action\UnpublishByKeywordActionTest.
Class
- UnpublishByKeywordActionTest
- @group node
Namespace
Drupal\Tests\node\Kernel\ActionCode
public function testUnpublishByKeywordAction() {
Action::create([
'id' => 'foo',
'label' => 'Foobaz',
'plugin' => 'node_unpublish_by_keyword_action',
])
->save();
}