Skip to content

Commit

Permalink
fix: feature flag for xml editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Makar Sichevoi committed Nov 9, 2023
1 parent 04a5e89 commit 265665e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/unit/models/classes/xml/XmlEditorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 265665e

Please sign in to comment.