File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
app/code/Magento/SalesRule Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 18
18
19
19
namespace Magento \SalesRule \Test \Unit \Model \Plugin ;
20
20
21
- use Magento \Framework \TestFramework \Unit \Helper \ObjectManager as ObjectManagerHelper ;
22
21
use Magento \Quote \Model \Quote ;
23
22
use Magento \Quote \Model \QuoteRepository ;
24
23
use PHPUnit \Framework \MockObject \MockObject ;
@@ -60,7 +59,6 @@ class CouponUsageIncreamentForMultishippingTest extends TestCase
60
59
*/
61
60
protected function setUp (): void
62
61
{
63
- $ this ->objectManagerHelper = new ObjectManagerHelper ($ this );
64
62
$ this ->subjectMock = $ this ->getMockBuilder (PlaceOrderDefault::class)
65
63
->disableOriginalConstructor ()
66
64
->getMock ();
@@ -75,12 +73,9 @@ protected function setUp(): void
75
73
->onlyMethods (['getQuoteId ' ])
76
74
->disableOriginalConstructor ()
77
75
->getMock ();
78
- $ this ->plugin = $ this ->objectManagerHelper ->getObject (
79
- CouponUsagesIncrementMultishipping::class,
80
- [
81
- 'updateCouponUsages ' => $ this ->updateCouponUsagesMock ,
82
- 'quoteRepository ' => $ this ->quoteRepositoryMock
83
- ]
76
+ $ this ->plugin = new CouponUsagesIncrementMultishipping (
77
+ $ this ->updateCouponUsagesMock ,
78
+ $ this ->quoteRepositoryMock
84
79
);
85
80
}
86
81
/**
Original file line number Diff line number Diff line change 12
12
<module name =" Magento_Catalog" />
13
13
<module name =" Magento_Sales" />
14
14
<module name =" Magento_Quote" />
15
+ <module name =" Magento_Multishipping" />
15
16
</sequence >
16
17
</module >
17
18
</config >
You can’t perform that action at this time.
0 commit comments