diff --git a/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php b/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php index 20a88f2224..fab2f7a2f0 100644 --- a/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php +++ b/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php @@ -139,7 +139,7 @@ public function decorateState(StateInterface $state) { } /** - * @inheritDoc + * {@inheritdoc} */ public function deleteState($state_id) { $new_state = $this->configuration['states'][$state_id]['published'] ? 'published' : 'draft'; diff --git a/core/modules/content_moderation/tests/src/Kernel/DeleteWorkflowStateTest.php b/core/modules/content_moderation/tests/src/Kernel/DeleteWorkflowStateTest.php index 31421888d0..266c157708 100644 --- a/core/modules/content_moderation/tests/src/Kernel/DeleteWorkflowStateTest.php +++ b/core/modules/content_moderation/tests/src/Kernel/DeleteWorkflowStateTest.php @@ -80,10 +80,6 @@ function testNodeModeration() { 'type' => 'example', 'title' => 'Test title', ]); - $node->setUnpublished()->save(); - $this->assertEquals('draft', $node->moderation_state->value); - $this->assertFalse($node->isPublished()); - $node->moderation_state->value = 'test'; $node->save(); $this->assertEquals('test', $node->moderation_state->value); @@ -101,10 +97,6 @@ function testNodeModeration() { 'type' => 'example', 'title' => 'Test title 2', ]); - $node2->setUnpublished()->save(); - $this->assertEquals('draft', $node2->moderation_state->value); - $this->assertFalse($node2->isPublished()); - $node2->moderation_state->value = 'unpub_test'; $node2->save(); $this->assertEquals('unpub_test', $node2->moderation_state->value);