Skip to content

Commit

Permalink
static, integration test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 committed Apr 24, 2019
1 parent 4f6a15a commit 65a61a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/code/Magento/Email/Model/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ public function setOptions(array $options)
}

/**
* Return filter factory.
*
* @return \Magento\Email\Model\Template\FilterFactory
*/
protected function getFilterFactory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ public function testGetVariablesOptionArrayInGroup()
$testTemplateVariables = '{"var data.name":"Sender Name","var data.email":"Sender Email"}';
$this->model->setOrigTemplateVariables($testTemplateVariables);
$variablesOptionArray = $this->model->getVariablesOptionArray(true);
$this->assertEquals('Template Variables', $variablesOptionArray['label']->getText());
$this->assertEquals($this->model->getVariablesOptionArray(), $variablesOptionArray['value']);
$this->assertEquals('Template Variables', $variablesOptionArray[0]['label']->getText());
$this->assertEquals($this->model->getVariablesOptionArray(), $variablesOptionArray[0]['value']);
}

/**
Expand Down

0 comments on commit 65a61a5

Please sign in to comment.