File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
app/code/Magento/Catalog/Test/Unit/ViewModel/Product Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 12
12
use Magento \Catalog \ViewModel \Product \Breadcrumbs ;
13
13
use Magento \Framework \App \Config \ScopeConfigInterface ;
14
14
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
15
+ use Magento \Framework \Serialize \Serializer \JsonHexTag ;
15
16
16
17
/**
17
18
* Unit test for Magento\Catalog\ViewModel\Product\Breadcrumbs.
@@ -38,6 +39,11 @@ class BreadcrumbsTest extends \PHPUnit\Framework\TestCase
38
39
*/
39
40
private $ objectManager ;
40
41
42
+ /**
43
+ * @var JsonHexTag|\PHPUnit_Framework_MockObject_MockObject
44
+ */
45
+ private $ serializer ;
46
+
41
47
/**
42
48
* @inheritdoc
43
49
*/
@@ -54,15 +60,16 @@ protected function setUp() : void
54
60
->getMockForAbstractClass ();
55
61
56
62
$ escaper = $ this ->getObjectManager ()->getObject (\Magento \Framework \Escaper::class);
57
- $ this ->serializer = $ this ->createMock (\Magento \Framework \Serialize \Serializer \JsonHexTag::class);
63
+
64
+ $ this ->serializer = $ this ->createMock (JsonHexTag::class);
58
65
59
66
$ this ->viewModel = $ this ->getObjectManager ()->getObject (
60
67
Breadcrumbs::class,
61
68
[
62
69
'catalogData ' => $ this ->catalogHelper ,
63
70
'scopeConfig ' => $ this ->scopeConfig ,
64
- 'jsonSerializer ' => $ this -> serializer ,
65
- 'escaper ' => $ escaper
71
+ 'escaper ' => $ escaper ,
72
+ 'jsonSerializer ' => $ this -> serializer
66
73
]
67
74
);
68
75
}
You can’t perform that action at this time.
0 commit comments