File tree Expand file tree Collapse file tree 11 files changed +23
-18
lines changed
CheckoutAgreements/Test/Unit/Model
GiftMessage/Test/Unit/Model
Paypal/Test/Unit/Controller
Tax/Test/Unit/Model/Sales/Total/Quote
api-functional/testsuite/Magento
static/testsuite/Magento/Test/Integrity/Layout
lib/internal/Magento/Framework/App/Utility Expand file tree Collapse file tree 11 files changed +23
-18
lines changed Original file line number Diff line number Diff line change
1
+
1
2
<?php
2
3
/**
3
4
* Copyright © Magento, Inc. All rights reserved.
Original file line number Diff line number Diff line change 1
- <?php
1
+ <?php
2
2
/**
3
3
*
4
4
* Copyright © Magento, Inc. All rights reserved.
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ abstract class ExpressTest extends TestCase
32
32
/** @var Express */
33
33
protected $ model ;
34
34
35
- protected $ name = '' ;
35
+ /** @var string */
36
+ protected $ name = '' ;
36
37
37
38
/** @var Session|MockObject */
38
39
protected $ customerSession ;
Original file line number Diff line number Diff line change 48
48
*/
49
49
class TaxTest extends TestCase
50
50
{
51
- const TAX = 0.2 ;
51
+ public const TAX = 0.2 ;
52
52
53
53
/**
54
54
* Tests the specific method
Original file line number Diff line number Diff line change 9
9
10
10
class CartRepositoryTest extends WebapiAbstract
11
11
{
12
- const SERVICE_VERSION = 'V1 ' ;
13
- const SERVICE_NAME = 'giftMessageCartRepositoryV1 ' ;
14
- const RESOURCE_PATH = '/V1/carts/ ' ;
12
+ public const SERVICE_VERSION = 'V1 ' ;
13
+ public const SERVICE_NAME = 'giftMessageCartRepositoryV1 ' ;
14
+ public const RESOURCE_PATH = '/V1/carts/ ' ;
15
15
16
16
/**
17
17
* @var \Magento\TestFramework\ObjectManager
Original file line number Diff line number Diff line change 9
9
10
10
class GuestCartRepositoryTest extends WebapiAbstract
11
11
{
12
- const SERVICE_VERSION = 'V1 ' ;
13
- const SERVICE_NAME = 'giftMessageGuestCartRepositoryV1 ' ;
14
- const RESOURCE_PATH = '/V1/guest-carts/ ' ;
12
+ public const SERVICE_VERSION = 'V1 ' ;
13
+ public const SERVICE_NAME = 'giftMessageGuestCartRepositoryV1 ' ;
14
+ public const RESOURCE_PATH = '/V1/guest-carts/ ' ;
15
15
16
16
/**
17
17
* @var \Magento\TestFramework\ObjectManager
Original file line number Diff line number Diff line change 9
9
10
10
class ItemRepositoryTest extends WebapiAbstract
11
11
{
12
- const SERVICE_VERSION = 'V1 ' ;
13
- const SERVICE_NAME = 'giftMessageItemRepositoryV1 ' ;
14
- const RESOURCE_PATH = '/V1/carts/ ' ;
12
+ public const SERVICE_VERSION = 'V1 ' ;
13
+ public const SERVICE_NAME = 'giftMessageItemRepositoryV1 ' ;
14
+ public const RESOURCE_PATH = '/V1/carts/ ' ;
15
15
16
16
/**
17
17
* @var \Magento\TestFramework\ObjectManager
Original file line number Diff line number Diff line change @@ -131,7 +131,8 @@ public function testGetCartIfCartIdIsEmpty()
131
131
public function testGetCartIfCartIdIsMissed ()
132
132
{
133
133
$ this ->expectException (\Exception::class);
134
- $ this ->expectExceptionMessage ('Field "cart" argument "cart_id" of type "String!" is required but not provided. ' );
134
+ $ message = 'Field "cart" argument "cart_id" of type "String!" is required but not provided. ' ;
135
+ $ this ->expectExceptionMessage ($ message );
135
136
136
137
$ query = <<<QUERY
137
138
{
@@ -201,7 +202,8 @@ public function testGetCartWithNotDefaultStore()
201
202
public function testGetCartWithWrongStore ()
202
203
{
203
204
$ this ->expectException (\Exception::class);
204
- $ this ->expectExceptionMessage ('The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later. ' );
205
+ $ message = 'The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later. ' ;
206
+ $ this ->expectExceptionMessage ($ message );
205
207
206
208
$ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ->execute ('test_order_1 ' );
207
209
$ query = $ this ->getQuery ($ maskedQuoteId );
Original file line number Diff line number Diff line change 19
19
*/
20
20
class ShipOrderTest extends \Magento \TestFramework \TestCase \WebapiAbstract
21
21
{
22
- const SERVICE_READ_NAME = 'salesShipOrderV1 ' ;
23
- const SERVICE_VERSION = 'V1 ' ;
22
+ public const SERVICE_READ_NAME = 'salesShipOrderV1 ' ;
23
+ public const SERVICE_VERSION = 'V1 ' ;
24
24
25
25
/**
26
26
* @var ObjectManagerInterface
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Test layout declaration and usage of block elements
4
- *
5
3
* Copyright © Magento, Inc. All rights reserved.
6
4
* See COPYING.txt for license details.
7
5
*/
You can’t perform that action at this time.
0 commit comments