public function HookImplementationTest::setUp in Scheduler content moderation integration 8
Overrides SchedulerContentModerationTestBase::setUp
File
- tests/
src/ Kernel/ HookImplementationTest.php, line 31
Class
- HookImplementationTest
- Tests the Scheduler hook functions implemented by this module.
Namespace
Drupal\Tests\scheduler_content_moderation_integration\KernelCode
public function setUp() {
parent::setUp();
// Create a test 'Example' node which will be moderated.
$this->moderatedNode = Node::create([
'type' => 'example',
'title' => 'Example content is moderated',
]);
// Create a test 'Other' node which will not be moderated.
$this->nonModeratedNode = Node::create([
'type' => 'other',
'title' => 'Other is not moderated',
]);
}