Skip to content

Commit

Permalink
Fix type with app/code/Magento/Email/Test/Unit/Model/TemplateTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanners committed Mar 3, 2017
1 parent 875ea4f commit 1415a84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/code/Magento/Email/Test/Unit/Model/TemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class TemplateTest extends \PHPUnit_Framework_TestCase
/**
* @var \Magento\Framework\Serialize\Serializer\Json|\PHPUnit_Framework_MockObject_MockObject
*/
private $serilizerMock;
private $serializerMock;

protected function setUp()
{
Expand Down Expand Up @@ -144,7 +144,7 @@ protected function setUp()
->disableOriginalConstructor()
->getMock();

$this->serilizerMock = $this->getMockBuilder(\Magento\Framework\Serialize\Serializer\Json::class)->getMock();
$this->serializerMock = $this->getMockBuilder(\Magento\Framework\Serialize\Serializer\Json::class)->getMock();
}

/**
Expand Down Expand Up @@ -172,7 +172,7 @@ protected function getModelMock(array $mockedMethods = [])
$this->urlModel,
$this->filterFactory,
[],
$this->serilizerMock
$this->serializerMock
])
->getMock();
}
Expand Down Expand Up @@ -542,7 +542,7 @@ public function testGetVariablesOptionArray($withGroup, $templateVariables, $exp
$model = $this->getModelMock();
$model->setData('orig_template_variables', $templateVariables);

$this->serilizerMock->expects($this->any())->method('unserialize')
$this->serializerMock->expects($this->any())->method('unserialize')
->willReturn(
json_decode($templateVariables, true)
);
Expand Down

0 comments on commit 1415a84

Please sign in to comment.