File tree 15 files changed +31
-19
lines changed
CheckoutAgreements/Test/Unit/Model/Checkout/Plugin
Downloadable/Test/Unit/Model
GiftMessage/Test/Unit/Model/Plugin
Multishipping/Test/Unit/Model
Persistent/Test/Unit/Model
ProductVideo/Test/Unit/Model/Product/Attribute/Media
15 files changed +31
-19
lines changed Original file line number Diff line number Diff line change 32
32
use Magento \Quote \Model \ShippingAssignmentFactory ;
33
33
use Magento \Quote \Model \ShippingFactory ;
34
34
use PHPUnit \Framework \MockObject \MockObject ;
35
+ use PHPUnit \Framework \MockObject \RuntimeException ;
35
36
use PHPUnit \Framework \TestCase ;
36
37
37
38
/**
@@ -631,7 +632,7 @@ private function getCartExtensionMock(): MockObject
631
632
$ mockBuilder = $ this ->getMockBuilder (CartExtension::class);
632
633
try {
633
634
$ mockBuilder ->addMethods (['getShippingAssignments ' , 'setShippingAssignments ' ]);
634
- } catch (\ RuntimeException $ e ) {
635
+ } catch (RuntimeException $ e ) {
635
636
// CartExtension already generated.
636
637
}
637
638
Original file line number Diff line number Diff line change 20
20
use Magento \Quote \Api \Data \PaymentInterface ;
21
21
use Magento \Store \Model \ScopeInterface ;
22
22
use PHPUnit \Framework \MockObject \MockObject ;
23
+ use PHPUnit \Framework \MockObject \RuntimeException ;
23
24
use PHPUnit \Framework \TestCase ;
24
25
25
26
/**
@@ -174,7 +175,7 @@ private function getPaymentExtension(): MockObject
174
175
$ mockBuilder = $ this ->getMockBuilder (PaymentExtension::class);
175
176
try {
176
177
$ mockBuilder ->addMethods (['getAgreementIds ' ]);
177
- } catch (\ RuntimeException $ e ) {
178
+ } catch (RuntimeException $ e ) {
178
179
// Payment extension already generated.
179
180
}
180
181
Original file line number Diff line number Diff line change 22
22
use Magento \Quote \Model \Quote ;
23
23
use Magento \Store \Model \ScopeInterface ;
24
24
use PHPUnit \Framework \MockObject \MockObject ;
25
+ use PHPUnit \Framework \MockObject \RuntimeException ;
25
26
use PHPUnit \Framework \TestCase ;
26
27
27
28
/**
@@ -241,7 +242,7 @@ private function getPaymentExtension(): MockObject
241
242
$ mockBuilder = $ this ->getMockBuilder (PaymentExtension::class);
242
243
try {
243
244
$ mockBuilder ->addMethods (['getAgreementIds ' ]);
244
- } catch (\ RuntimeException $ e ) {
245
+ } catch (RuntimeException $ e ) {
245
246
// Payment extension already generated.
246
247
}
247
248
Original file line number Diff line number Diff line change 15
15
use Magento \Downloadable \Model \Link \UpdateHandler ;
16
16
use Magento \Downloadable \Model \Product \Type ;
17
17
use PHPUnit \Framework \MockObject \MockObject ;
18
+ use PHPUnit \Framework \MockObject \RuntimeException ;
18
19
use PHPUnit \Framework \TestCase ;
19
20
20
21
/**
@@ -157,7 +158,7 @@ private function getProductExtensionMock(): MockObject
157
158
->disableOriginalConstructor ();
158
159
try {
159
160
$ mockBuilder ->addMethods (['getDownloadableProductLinks ' ]);
160
- } catch (\ RuntimeException $ e ) {
161
+ } catch (RuntimeException $ e ) {
161
162
// ProductExtension already generated.
162
163
}
163
164
Original file line number Diff line number Diff line change 21
21
use Magento \Quote \Model \Quote \Item ;
22
22
use Magento \Quote \Model \Quote \ProductOptionFactory ;
23
23
use PHPUnit \Framework \MockObject \MockObject ;
24
+ use PHPUnit \Framework \MockObject \RuntimeException ;
24
25
use PHPUnit \Framework \TestCase ;
25
26
26
27
/**
@@ -250,7 +251,7 @@ private function getProductOptionExtensionMock(): MockObject
250
251
$ mockBuilder = $ this ->getMockBuilder (ProductOptionExtension::class);
251
252
try {
252
253
$ mockBuilder ->addMethods (['setDownloadableOption ' ]);
253
- } catch (\ RuntimeException $ e ) {
254
+ } catch (RuntimeException $ e ) {
254
255
// ProductOptionExtension already generated.
255
256
}
256
257
Original file line number Diff line number Diff line change 15
15
use Magento \Downloadable \Model \Product \Type ;
16
16
use Magento \Downloadable \Model \Sample \UpdateHandler ;
17
17
use PHPUnit \Framework \MockObject \MockObject ;
18
+ use PHPUnit \Framework \MockObject \RuntimeException ;
18
19
use PHPUnit \Framework \TestCase ;
19
20
20
21
/**
@@ -157,7 +158,7 @@ private function getProductExtensionMock(): MockObject
157
158
->disableOriginalConstructor ();
158
159
try {
159
160
$ mockBuilder ->addMethods (['getDownloadableProductSamples ' ]);
160
- } catch (\ RuntimeException $ e ) {
161
+ } catch (RuntimeException $ e ) {
161
162
// Product extension already generated.
162
163
}
163
164
Original file line number Diff line number Diff line change 20
20
use Magento \Sales \Api \Data \OrderItemInterface ;
21
21
use Magento \Sales \Model \ResourceModel \Order \Collection ;
22
22
use PHPUnit \Framework \MockObject \MockObject ;
23
+ use PHPUnit \Framework \MockObject \RuntimeException ;
23
24
use PHPUnit \Framework \TestCase ;
24
25
25
26
/**
@@ -279,7 +280,7 @@ private function getOrderExtensionMock(): MockObject
279
280
$ mockObject = $ this ->getMockBuilder (OrderExtension::class);
280
281
try {
281
282
$ mockObject ->addMethods (['getGiftMessage ' , 'setGiftMessage ' ]);
282
- } catch (\ RuntimeException $ e ) {
283
+ } catch (RuntimeException $ e ) {
283
284
// Order extension already generated.
284
285
}
285
286
@@ -296,7 +297,7 @@ private function getOrderItemExtensionMock(): MockObject
296
297
$ mockObject = $ this ->getMockBuilder (OrderItemExtension::class);
297
298
try {
298
299
$ mockObject ->addMethods (['getGiftMessage ' , 'setGiftMessage ' ]);
299
- } catch (\ RuntimeException $ e ) {
300
+ } catch (RuntimeException $ e ) {
300
301
// Order extension already generated.
301
302
}
302
303
Original file line number Diff line number Diff line change 16
16
use Magento \Sales \Api \Data \OrderItemExtension ;
17
17
use Magento \Sales \Api \Data \OrderItemInterface ;
18
18
use PHPUnit \Framework \MockObject \MockObject ;
19
+ use PHPUnit \Framework \MockObject \RuntimeException ;
19
20
use PHPUnit \Framework \TestCase ;
20
21
21
22
class OrderSaveTest extends TestCase
@@ -199,7 +200,7 @@ private function getOrderExtensionMock(): MockObject
199
200
$ mockBuilder = $ this ->getMockBuilder (OrderExtension::class);
200
201
try {
201
202
$ mockBuilder ->addMethods (['getGiftMessage ' , 'setGiftMessage ' ]);
202
- } catch (\ RuntimeException $ e ) {
203
+ } catch (RuntimeException $ e ) {
203
204
// OrderExtension already generated.
204
205
}
205
206
@@ -216,7 +217,7 @@ private function getOrderItemExtensionMock(): MockObject
216
217
$ mockBuilder = $ this ->getMockBuilder (OrderItemExtension::class);
217
218
try {
218
219
$ mockBuilder ->addMethods (['getGiftMessage ' , 'setGiftMessage ' ]);
219
- } catch (\ RuntimeException $ e ) {
220
+ } catch (RuntimeException $ e ) {
220
221
// OrderItemExtension already generated.
221
222
}
222
223
Original file line number Diff line number Diff line change 11
11
use Magento \Quote \Api \Data \CartExtensionInterface ;
12
12
use Magento \Quote \Api \Data \CartInterface ;
13
13
use PHPUnit \Framework \MockObject \MockObject ;
14
+ use PHPUnit \Framework \MockObject \RuntimeException ;
14
15
use PHPUnit \Framework \TestCase ;
15
16
16
17
/**
@@ -121,7 +122,7 @@ private function getCartExtensionMock(): MockObject
121
122
->disableOriginalConstructor ();
122
123
try {
123
124
$ mockBuilder ->addMethods (['getShippingAssignments ' , 'setShippingAssignments ' ]);
124
- } catch (\ RuntimeException $ e ) {
125
+ } catch (RuntimeException $ e ) {
125
126
// CartExtension already generated.
126
127
}
127
128
Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ private function getExtensionAttributesMock(): MockObject
392
392
$ extensionMockBuilder = $ this ->getMockBuilder (CartExtensionInterface::class);
393
393
try {
394
394
$ extensionMockBuilder ->addMethods (['setShippingAssignments ' ]);
395
- } catch (\ RuntimeException $ e ) {
395
+ } catch (RuntimeException $ e ) {
396
396
// do nothing as CartExtensionInterface already generated and has 'setShippingAssignments' method.
397
397
}
398
398
Original file line number Diff line number Diff line change 20
20
use Magento \ProductVideo \Model \Product \Attribute \Media \ExternalVideoEntryConverter ;
21
21
use Magento \ProductVideo \Model \Product \Attribute \Media \VideoEntry ;
22
22
use PHPUnit \Framework \MockObject \MockObject ;
23
+ use PHPUnit \Framework \MockObject \RuntimeException ;
23
24
use PHPUnit \Framework \TestCase ;
24
25
25
26
/**
@@ -232,7 +233,7 @@ private function getProductAttributeMediaGalleryEntryExtensionMock(): MockObject
232
233
'getVideoContent ' ,
233
234
]
234
235
);
235
- } catch (\ Exception $ e ) {
236
+ } catch (RuntimeException $ e ) {
236
237
// ProductAttributeMediaGalleryEntryExtension already generated and has all necessary methods.
237
238
}
238
239
Original file line number Diff line number Diff line change 16
16
use Magento \Quote \Model \Quote \ShippingAssignment \ShippingAssignmentProcessor ;
17
17
use Magento \Quote \Model \ShippingAddressAssignment ;
18
18
use PHPUnit \Framework \MockObject \MockObject ;
19
+ use PHPUnit \Framework \MockObject \RuntimeException ;
19
20
use PHPUnit \Framework \TestCase ;
20
21
21
22
class ShippingAddressAssignmentTest extends TestCase
@@ -122,7 +123,7 @@ private function getCartExtensionMock(): MockObject
122
123
$ mockBuilder = $ this ->getMockBuilder (CartExtension::class);
123
124
try {
124
125
$ mockBuilder ->addMethods (['setShippingAssignments ' ]);
125
- } catch (\ RuntimeException $ e ) {
126
+ } catch (RuntimeException $ e ) {
126
127
// CartExtension already generated.
127
128
}
128
129
Original file line number Diff line number Diff line change 29
29
use Magento \Tax \Api \Data \OrderTaxDetailsInterface ;
30
30
use Magento \Tax \Api \OrderTaxManagementInterface ;
31
31
use PHPUnit \Framework \MockObject \MockObject ;
32
+ use PHPUnit \Framework \MockObject \RuntimeException ;
32
33
use PHPUnit \Framework \TestCase ;
33
34
34
35
/**
@@ -261,7 +262,7 @@ private function getOrderExtensionMock(): MockObject
261
262
'setPaymentAdditionalInfo ' ,
262
263
]
263
264
);
264
- } catch (\ RuntimeException $ e ) {
265
+ } catch (RuntimeException $ e ) {
265
266
// Order extension already generated.
266
267
}
267
268
Original file line number Diff line number Diff line change 17
17
>
18
18
<!-- Test suites definition -->
19
19
<testsuites >
20
- <testsuite name =" Magento_Integration_Tests " >
20
+ <testsuite name =" Magento Integration Tests " >
21
21
<file >testsuite/Magento/IntegrationTest.php</file >
22
22
</testsuite >
23
23
<!-- Memory tests run first to prevent influence of other tests on accuracy of memory measurements -->
24
- <testsuite name =" Memory_Usage_Tests " >
24
+ <testsuite name =" Memory Usage Tests " >
25
25
<file >testsuite/Magento/MemoryUsageTest.php</file >
26
26
</testsuite >
27
- <testsuite name =" Magento_Integration_Tests_Real_Suite " >
27
+ <testsuite name =" Magento Integration Tests Real Suite " >
28
28
<directory >testsuite</directory >
29
29
<directory >../../../app/code/*/*/Test/Integration</directory >
30
30
<exclude >testsuite/Magento/MemoryUsageTest.php</exclude >
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public static function suite($className)
41
41
$ suitesConfig = $ configuration ->testSuite ();
42
42
$ suite = new TestSuite ();
43
43
foreach ($ suitesConfig as $ suiteConfig ) {
44
- if ($ suiteConfig ->name () === 'Magento_Integration_Tests ' ) {
44
+ if ($ suiteConfig ->name () === 'Magento Integration Tests ' ) {
45
45
continue ;
46
46
}
47
47
$ suites = self ::getSuites ($ suiteConfig );
You can’t perform that action at this time.
0 commit comments