function UnpublishByKeywordActionTest::testUnpublishByKeywordAction
Same name in this branch
- 10 core/modules/node/tests/src/Kernel/Action/UnpublishByKeywordActionTest.php \Drupal\Tests\node\Kernel\Action\UnpublishByKeywordActionTest::testUnpublishByKeywordAction()
- 10 core/modules/action/tests/src/Kernel/UnpublishByKeywordActionTest.php \Drupal\Tests\action\Kernel\UnpublishByKeywordActionTest::testUnpublishByKeywordAction()
Same name in other branches
- 9 core/modules/node/tests/src/Kernel/Action/UnpublishByKeywordActionTest.php \Drupal\Tests\node\Kernel\Action\UnpublishByKeywordActionTest::testUnpublishByKeywordAction()
- 8.9.x core/modules/node/tests/src/Kernel/Action/UnpublishByKeywordActionTest.php \Drupal\Tests\node\Kernel\Action\UnpublishByKeywordActionTest::testUnpublishByKeywordAction()
- 11.x core/modules/node/tests/src/Kernel/Action/UnpublishByKeywordActionTest.php \Drupal\Tests\node\Kernel\Action\UnpublishByKeywordActionTest::testUnpublishByKeywordAction()
Tests deprecation of \Drupal\node\Plugin\Action\UnpublishByKeywordNode.
File
-
core/
modules/ node/ tests/ src/ Unit/ Action/ UnpublishByKeywordActionTest.php, line 19
Class
- UnpublishByKeywordActionTest
- @group node @group legacy
Namespace
Drupal\Tests\node\Unit\ActionCode
public function testUnpublishByKeywordAction() : void {
$this->expectDeprecation('Drupal\\node\\Plugin\\Action\\UnpublishByKeywordNode is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \\Drupal\\action\\Plugin\\Action\\UnpublishByKeywordNode instead. See https://www.drupal.org/node/3424506');
$this->assertIsObject(new UnpublishByKeywordNode([], 'foo', []));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.