We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb8be8c commit 86d436eCopy full SHA for 86d436e
app/code/Magento/Widget/Test/Unit/Helper/ConditionsTest.php
@@ -26,13 +26,7 @@ class ConditionsTest extends \PHPUnit_Framework_TestCase
26
*/
27
protected function setUp()
28
{
29
- $this->serializer = $this->getMock(\Magento\Framework\Serialize\Serializer\Json::class);
30
- $this->serializer->method('serialize')->willReturnCallback(function ($value) {
31
- return json_encode($value);
32
- });
33
- $this->serializer->method('unserialize')->willReturnCallback(function ($value) {
34
- return json_decode($value, true);
35
+ $this->serializer = $this->getMock(\Magento\Framework\Serialize\Serializer\Json::class, null);
36
$this->conditions = new \Magento\Widget\Helper\Conditions(
37
$this->serializer
38
);
0 commit comments