@@ -95,12 +95,12 @@ public function testGetSectionData()
95
95
$ shortcutButtonsHtml = '<span>Buttons</span> ' ;
96
96
$ websiteId = 100 ;
97
97
98
- $ subtotalMock = $ this ->getMock (' \Magento\Framework\DataObject ' , ['getValue ' ], [], '' , false );
98
+ $ subtotalMock = $ this ->getMock (\Magento \Framework \DataObject::class , ['getValue ' ], [], '' , false );
99
99
$ subtotalMock ->expects ($ this ->once ())->method ('getValue ' )->willReturn ($ subtotalValue );
100
100
$ totals = ['subtotal ' => $ subtotalMock ];
101
101
102
102
$ quoteMock = $ this ->getMock (
103
- ' \Magento\Quote\Model\Quote ' ,
103
+ \Magento \Quote \Model \Quote::class ,
104
104
['getTotals ' , 'getHasError ' , 'getAllVisibleItems ' , 'getStore ' ],
105
105
[],
106
106
'' ,
@@ -117,15 +117,15 @@ public function testGetSectionData()
117
117
->willReturn ($ subtotalValue );
118
118
$ this ->checkoutHelperMock ->expects ($ this ->once ())->method ('canOnepageCheckout ' )->willReturn (true );
119
119
120
- $ quoteItemMock = $ this ->getMock (' \Magento\Quote\Model\Quote\Item ' , ['getProduct ' , 'getStoreId ' ], [], '' , false );
120
+ $ quoteItemMock = $ this ->getMock (\Magento \Quote \Model \Quote \Item::class , ['getProduct ' , 'getStoreId ' ], [], '' , false );
121
121
$ quoteMock ->expects ($ this ->once ())->method ('getAllVisibleItems ' )->willReturn ([$ quoteItemMock ]);
122
122
123
123
$ storeMock = $ this ->getMock (\Magento \Store \Model \System \Store::class, ['getWebsiteId ' ], [], '' , false );
124
124
$ storeMock ->expects ($ this ->once ())->method ('getWebsiteId ' )->willReturn ($ websiteId );
125
125
$ quoteMock ->expects ($ this ->once ())->method ('getStore ' )->willReturn ($ storeMock );
126
126
127
127
$ productMock = $ this ->getMock (
128
- ' \Magento\Catalog\Model\Product ' ,
128
+ \Magento \Catalog \Model \Product::class ,
129
129
['isVisibleInSiteVisibility ' , 'getId ' , 'setUrlDataObject ' ],
130
130
[],
131
131
'' ,
0 commit comments