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+
12<?php
23/**
34 * Copyright © Magento, Inc. All rights reserved.
Original file line number Diff line number Diff line change 1- <?php
1+ <?php
22/**
33 *
44 * 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
3232 /** @var Express */
3333 protected $ model ;
3434
35- protected $ name = '' ;
35+ /** @var string */
36+ protected $ name = '' ;
3637
3738 /** @var Session|MockObject */
3839 protected $ customerSession ;
Original file line number Diff line number Diff line change 4848 */
4949class TaxTest extends TestCase
5050{
51- const TAX = 0.2 ;
51+ public const TAX = 0.2 ;
5252
5353 /**
5454 * Tests the specific method
Original file line number Diff line number Diff line change 99
1010class CartRepositoryTest extends WebapiAbstract
1111{
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/ ' ;
1515
1616 /**
1717 * @var \Magento\TestFramework\ObjectManager
Original file line number Diff line number Diff line change 99
1010class GuestCartRepositoryTest extends WebapiAbstract
1111{
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/ ' ;
1515
1616 /**
1717 * @var \Magento\TestFramework\ObjectManager
Original file line number Diff line number Diff line change 99
1010class ItemRepositoryTest extends WebapiAbstract
1111{
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/ ' ;
1515
1616 /**
1717 * @var \Magento\TestFramework\ObjectManager
Original file line number Diff line number Diff line change @@ -131,7 +131,8 @@ public function testGetCartIfCartIdIsEmpty()
131131 public function testGetCartIfCartIdIsMissed ()
132132 {
133133 $ 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 );
135136
136137 $ query = <<<QUERY
137138{
@@ -201,7 +202,8 @@ public function testGetCartWithNotDefaultStore()
201202 public function testGetCartWithWrongStore ()
202203 {
203204 $ 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 );
205207
206208 $ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ->execute ('test_order_1 ' );
207209 $ query = $ this ->getQuery ($ maskedQuoteId );
Original file line number Diff line number Diff line change 1919 */
2020class ShipOrderTest extends \Magento \TestFramework \TestCase \WebapiAbstract
2121{
22- const SERVICE_READ_NAME = 'salesShipOrderV1 ' ;
23- const SERVICE_VERSION = 'V1 ' ;
22+ public const SERVICE_READ_NAME = 'salesShipOrderV1 ' ;
23+ public const SERVICE_VERSION = 'V1 ' ;
2424
2525 /**
2626 * @var ObjectManagerInterface
Original file line number Diff line number Diff line change 11<?php
22/**
3- * Test layout declaration and usage of block elements
4- *
53 * Copyright © Magento, Inc. All rights reserved.
64 * See COPYING.txt for license details.
75 */
You can’t perform that action at this time.
0 commit comments