Version 1
[yaffs-website] / web / core / modules / node / tests / src / Kernel / Action / UnpublishByKeywordActionTest.php
1 <?php
2
3 namespace Drupal\Tests\node\Kernel\Action;
4
5 use Drupal\KernelTests\KernelTestBase;
6 use Drupal\system\Entity\Action;
7
8 /**
9  * @group node
10  */
11 class UnpublishByKeywordActionTest extends KernelTestBase {
12
13   /**
14    * {@inheritdoc}
15    */
16   public static $modules = ['action', 'node', 'system', 'user'];
17
18   /**
19    * Tests creating an action using the node_unpublish_by_keyword_action plugin.
20    *
21    * @see https://www.drupal.org/node/2578519
22    */
23   public function testUnpublishByKeywordAction() {
24     Action::create([
25       'id' => 'foo',
26       'label' => 'Foobaz',
27       'plugin' => 'node_unpublish_by_keyword_action',
28     ])->save();
29   }
30
31 }