File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed
Test/Unit/Model/GuestCart Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -84,16 +84,4 @@ public function placeOrder($cartId)
84
84
$ quoteIdMask = $ this ->quoteIdMaskFactory ->create ()->load ($ cartId , 'masked_id ' );
85
85
return $ this ->quoteManagement ->placeOrder ($ quoteIdMask ->getId ());
86
86
}
87
-
88
- /**
89
- * {@inheritdoc}
90
- */
91
- public function getCartForCustomer ($ customerId )
92
- {
93
- $ cart = $ this ->quoteRepository ->getActiveForCustomer ($ customerId );
94
- /** @var $quoteIdMask QuoteIdMask */
95
- $ quoteIdMask = $ this ->quoteIdMaskFactory ->create ()->load ($ cart ->getId (), 'masked_id ' );
96
- $ cart ->setId ($ quoteIdMask ->getId ());
97
- return $ cart ;
98
- }
99
87
}
Original file line number Diff line number Diff line change @@ -115,18 +115,4 @@ public function testPlaceOrder()
115
115
116
116
$ this ->assertEquals ($ orderId , $ this ->guestCartManagement ->placeOrder ($ cartId ));
117
117
}
118
-
119
- public function testGetCartForCustomer ()
120
- {
121
- $ maskedCartId = 'masked1cart2id3 ' ;
122
- $ cartId = 1 ;
123
- $ orderId = 1 ;
124
-
125
- $ this ->quoteIdMaskMock ->expects ($ this ->once ())->method ('load ' )->with ($ cartId , 'masked_id ' )->willReturnSelf ();
126
- $ this ->quoteIdMaskMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ($ maskedCartId );
127
- $ this ->quoteIdMaskFactoryMock ->expects ($ this ->once ())->method ('create ' )->willReturn ($ this ->quoteIdMaskMock );
128
- $ this ->quoteManagementMock ->expects ($ this ->once ())->method ('placeOrder ' )->willReturn ($ orderId );
129
-
130
- $ this ->assertEquals ($ orderId , $ this ->guestCartManagement ->placeOrder ($ cartId ));
131
- }
132
118
}
You can’t perform that action at this time.
0 commit comments