diff --git a/core/modules/content_moderation/tests/src/Functional/DefaultModerationStateUpdateTest.php b/core/modules/content_moderation/tests/src/Functional/DefaultModerationStateUpdateTest.php index a2e80d4f88..d6c96b5b95 100644 --- a/core/modules/content_moderation/tests/src/Functional/DefaultModerationStateUpdateTest.php +++ b/core/modules/content_moderation/tests/src/Functional/DefaultModerationStateUpdateTest.php @@ -30,12 +30,14 @@ protected function setDatabaseDumpFiles() { */ public function testUpdateDefaultModerationState() { $workflow = Workflow::load('editorial'); - $this->assertFalse(isset($workflow->getTypePlugin()->getConfiguration()['default_moderation_state'])); + $configuration = $workflow->getTypePlugin()->getConfiguration(); + $this->assertFalse(isset($configuration['default_moderation_state'])); $this->runUpdates(); $workflow = Workflow::load('editorial'); - $this->assertEquals('draft', $workflow->getTypePlugin()->getConfiguration()['default_moderation_state']); + $configuration = $workflow->getTypePlugin()->getConfiguration(); + $this->assertEquals('draft', $configuration['default_moderation_state']); } }