File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
app/code/Magento/SalesGraphQl/Test/Unit/Model/Resolver Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,6 @@ class OrderTotalTest extends TestCase
25
25
*/
26
26
private $ orderMock ;
27
27
28
- /**
29
- * @var QuoteFactory|MockObject
30
- */
31
- private $ quoteFactoryMock ;
32
-
33
28
/**
34
29
* @var OrderTotal|MockObject
35
30
*/
@@ -60,7 +55,6 @@ protected function setUp(): void
60
55
$ this ->contextMock = $ this ->createMock (ContextInterface::class);
61
56
$ this ->fieldMock = $ this ->createMock (Field::class);
62
57
$ this ->resolveInfoMock = $ this ->createMock (ResolveInfo::class);
63
- $ this ->quoteFactoryMock = $ this ->createMock (QuoteFactory::class);
64
58
$ this ->extensionAttributesMock = $ this ->createMock (OrderExtensionInterface::class);
65
59
$ this ->orderMock = $ this ->createMock (OrderInterface::class);
66
60
$ this ->orderMock ->method ('getOrderCurrencyCode ' )->willReturn ('USD ' );
@@ -73,7 +67,7 @@ protected function setUp(): void
73
67
$ this ->orderMock ->method ('getShippingInclTax ' )->willReturn (7.00 );
74
68
$ this ->orderMock ->method ('getDiscountAmount ' )->willReturn (7.00 );
75
69
$ this ->orderMock ->method ('getDiscountDescription ' )->willReturn ('TEST123 ' );
76
- $ this ->orderTotal = new OrderTotal ($ this -> quoteFactoryMock );
70
+ $ this ->orderTotal = new OrderTotal ();
77
71
}
78
72
79
73
public function testResolve (): void
You can’t perform that action at this time.
0 commit comments