class UnpublishByKeywordActionTest extends KernelTestBase
{ /**
* {@inheritdoc}
*/
protected static $modules =
['action', 'node', 'system', 'user', 'field'
];
/**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
$this->
installEntitySchema('node'
);
$this->
installEntitySchema('user'
);
$this->
installSchema('node',
['node_access'
]);
// Install system's configuration as default date formats are needed.
$this->
installConfig(['system'
]);
// Create a node type for testing.
$type = NodeType::
create(['type' => 'page', 'name' => 'page', 'display_submitted' => FALSE
]);
$type->
save();
} /**
* Tests creating an action using the node_unpublish_by_keyword_action plugin.
*/