diff --git a/core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php b/core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php index ab8e5802bb..53316b793a 100644 --- a/core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php +++ b/core/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php @@ -11,7 +11,7 @@ /** * Check moderation states are not being used before updating workflow config. */ -class ConfigImportSubscriber extends ConfigImportValidateEventSubscriberBase { +class ConfigImportSubscriber extends ConfigImportValidateEventSubscriberBase { /** * The config manager. diff --git a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php index 683998b764..07acb79f99 100644 --- a/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php +++ b/core/modules/content_moderation/tests/src/Functional/ModerationFormTest.php @@ -471,7 +471,7 @@ public function testWorkflowInUse() { $this->drupalPostForm('node/add/moderated_content', [ 'title[0][value]' => 'Some moderated content', 'body[0][value]' => 'First version of the content.', - ], t('Save and Create New Draft')); + ], 'Save and Create New Draft'); // The archived state is not used yet, so can still be deleted. $this->drupalGet($paths['archived_state']); $this->assertSession()->buttonExists('Delete'); @@ -480,8 +480,8 @@ public function testWorkflowInUse() { $this->assertSession()->buttonNotExists('Delete'); $node = $this->drupalGetNodeByTitle('Some moderated content'); - $this->drupalPostForm('node/' . $node->id() . '/edit', [], t('Save and Publish')); - $this->drupalPostForm('node/' . $node->id() . '/edit', [], t('Save and Archive')); + $this->drupalPostForm('node/' . $node->id() . '/edit', [], 'Save and Publish'); + $this->drupalPostForm('node/' . $node->id() . '/edit', [], 'Save and Archive'); // Now the archived state is being used it can't be deleted either. foreach ($paths as $path) { $this->drupalGet($path);