From 265665e52000ac99c6f3e04e4fada4e2b3ad6e5d Mon Sep 17 00:00:00 2001 From: Makar Sichevoi Date: Thu, 9 Nov 2023 11:24:44 +0200 Subject: [PATCH] fix: feature flag for xml editor --- test/unit/models/classes/xml/XmlEditorTest.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/unit/models/classes/xml/XmlEditorTest.php b/test/unit/models/classes/xml/XmlEditorTest.php index 723b84633..d755826ca 100644 --- a/test/unit/models/classes/xml/XmlEditorTest.php +++ b/test/unit/models/classes/xml/XmlEditorTest.php @@ -86,7 +86,9 @@ public function testGetTestXml() ->willReturn([XmlEditor::OPTION_XML_EDITOR_LOCK => true]); $serviceXmlEditor = new XmlEditor( - $this->extensionsManagerMock, $this->qtiTestServiceMock, $this->featureFlagCheckerMock + $this->extensionsManagerMock, + $this->qtiTestServiceMock, + $this->featureFlagCheckerMock ); $xmlString = $serviceXmlEditor->getTestXml($this->testResourceMock); @@ -107,7 +109,9 @@ public function testSaveStringTest() ->willReturn([XmlEditor::OPTION_XML_EDITOR_LOCK => true]); $serviceXmlEditor = new XmlEditor( - $this->extensionsManagerMock, $this->qtiTestServiceMock, $this->featureFlagCheckerMock + $this->extensionsManagerMock, + $this->qtiTestServiceMock, + $this->featureFlagCheckerMock ); // phpcs:disable Generic.Files.LineLength @@ -201,7 +205,9 @@ public function testIsLocked() ->willReturn([XmlEditor::OPTION_XML_EDITOR_LOCK => false]); $serviceXmlEditor = new XmlEditor( - $this->extensionsManagerMock, $this->qtiTestServiceMock, $this->featureFlagCheckerMock + $this->extensionsManagerMock, + $this->qtiTestServiceMock, + $this->featureFlagCheckerMock ); $this->featureFlagCheckerMock