protected function UnpublishByKeywordActionTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/node/tests/src/Kernel/Action/UnpublishByKeywordActionTest.php \Drupal\Tests\node\Kernel\Action\UnpublishByKeywordActionTest::setUp()
- 10 core/modules/node/tests/src/Kernel/Action/UnpublishByKeywordActionTest.php \Drupal\Tests\node\Kernel\Action\UnpublishByKeywordActionTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ node/ tests/ src/ Kernel/ Action/ UnpublishByKeywordActionTest.php, line 21
Class
- UnpublishByKeywordActionTest
- @group node
Namespace
Drupal\Tests\node\Kernel\ActionCode
protected function setUp() {
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();
}