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 1212use Magento \Catalog \ViewModel \Product \Breadcrumbs ;
1313use Magento \Framework \App \Config \ScopeConfigInterface ;
1414use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
15+ use Magento \Framework \Serialize \Serializer \JsonHexTag ;
1516
1617/**
1718 * Unit test for Magento\Catalog\ViewModel\Product\Breadcrumbs.
@@ -38,6 +39,11 @@ class BreadcrumbsTest extends \PHPUnit\Framework\TestCase
3839 */
3940 private $ objectManager ;
4041
42+ /**
43+ * @var JsonHexTag|\PHPUnit_Framework_MockObject_MockObject
44+ */
45+ private $ serializer ;
46+
4147 /**
4248 * @inheritdoc
4349 */
@@ -54,15 +60,16 @@ protected function setUp() : void
5460 ->getMockForAbstractClass ();
5561
5662 $ 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);
5865
5966 $ this ->viewModel = $ this ->getObjectManager ()->getObject (
6067 Breadcrumbs::class,
6168 [
6269 'catalogData ' => $ this ->catalogHelper ,
6370 'scopeConfig ' => $ this ->scopeConfig ,
64- 'jsonSerializer ' => $ this -> serializer ,
65- 'escaper ' => $ escaper
71+ 'escaper ' => $ escaper ,
72+ 'jsonSerializer ' => $ this -> serializer
6673 ]
6774 );
6875 }
You can’t perform that action at this time.
0 commit comments