Skip to content

Commit ab8b57e

Browse files
committed
Fix static tests.
1 parent 6f0d869 commit ab8b57e

File tree

8 files changed

+30
-33
lines changed

8 files changed

+30
-33
lines changed

app/code/Magento/Sales/Model/Order/Creditmemo/Notifier.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2016 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Sales\Model\Order\Creditmemo;
77

@@ -27,7 +27,7 @@ public function __construct(array $senders = [])
2727
}
2828

2929
/**
30-
* {@inheritdoc}
30+
* @inheritdoc
3131
* @since 100.1.3
3232
*/
3333
public function notify(

app/code/Magento/Sales/Test/Unit/Block/Adminhtml/Order/Create/Items/GridTest.php

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -89,19 +89,16 @@ protected function setUp(): void
8989
$taxData = $this->getMockBuilder(Data::class)
9090
->disableOriginalConstructor()
9191
->getMock();
92-
$this->priceCurrency = $this->getMockBuilder(
93-
PriceCurrencyInterface::class
94-
)->getMock();
92+
$this->priceCurrency = $this->getMockBuilder(PriceCurrencyInterface::class)
93+
->getMock();
9594
$sessionMock = $this->getMockBuilder(Quote::class)
9695
->disableOriginalConstructor()
9796
->onlyMethods(['getQuote'])
9897
->getMock();
99-
10098
$quoteMock = $this->getMockBuilder(\Magento\Quote\Model\Quote::class)
10199
->disableOriginalConstructor()
102100
->onlyMethods(['getStore'])
103101
->getMock();
104-
105102
$storeMock = $this->getMockBuilder(Store::class)
106103
->disableOriginalConstructor()
107104
->getMock();

app/code/Magento/Tax/Block/Item/Price/Renderer.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2014 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Tax\Block\Item\Price;
77

@@ -18,7 +18,6 @@
1818
* Item price render block
1919
*
2020
* @api
21-
* @author Magento Core Team <core@magentocommerce.com>
2221
* @since 100.0.2
2322
*/
2423
class Renderer extends \Magento\Framework\View\Element\Template
@@ -106,6 +105,8 @@ public function setZone($zone)
106105
}
107106

108107
/**
108+
* Get store id
109+
*
109110
* @return int|null|string
110111
*/
111112
public function getStoreId()
@@ -201,8 +202,7 @@ public function formatPrice($price)
201202
}
202203

203204
/**
204-
* Get item price in display currency or order currency depending
205-
* on item type
205+
* Get item price in display currency or order currency depending on item type
206206
*
207207
* @return float
208208
*/

app/code/Magento/Tax/Model/Api/SearchCriteria/JoinProcessor/CalculationData.php

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2016 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Tax\Model\Api\SearchCriteria\JoinProcessor;
77

88
use Magento\Framework\Api\SearchCriteria\CollectionProcessor\JoinProcessor\CustomJoinInterface;
99
use Magento\Framework\Data\Collection\AbstractDb;
1010

11-
/**
12-
* Class CalculationData
13-
* @package Magento\Tax\Model\Api\SearchCriteria\JoinProcessor
14-
*/
1511
class CalculationData implements CustomJoinInterface
1612
{
1713
/** Alias of table, that will be joined */
18-
const CALCULATION_DATA_ALIAS = "cd";
14+
public const CALCULATION_DATA_ALIAS = "cd";
1915

2016
/**
17+
* Apply join to collection
18+
*
2119
* @param \Magento\Tax\Model\ResourceModel\Calculation\Rule\Collection $collection
2220
* @return bool
2321
*/

lib/internal/Magento/Framework/Setup/Declaration/Schema/DataSavior/SelectGenerator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2018 Adobe
4+
* All Rights Reserved.
55
*/
66

77
namespace Magento\Framework\Setup\Declaration\Schema\DataSavior;

lib/internal/Magento/Framework/View/Element/Template/File/Validator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Framework\View\Element\Template\File;
77

setup/src/Magento/Setup/Model/BasePackageInfo.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Setup\Model;
77

@@ -13,11 +13,11 @@
1313
*/
1414
class BasePackageInfo
1515
{
16-
const MAGENTO_BASE_PACKAGE_COMPOSER_JSON_FILE = 'magento/magento2-base/composer.json';
16+
public const MAGENTO_BASE_PACKAGE_COMPOSER_JSON_FILE = 'magento/magento2-base/composer.json';
1717

18-
const COMPOSER_KEY_EXTRA = 'extra';
18+
public const COMPOSER_KEY_EXTRA = 'extra';
1919

20-
const COMPOSER_KEY_MAP = 'map';
20+
public const COMPOSER_KEY_MAP = 'map';
2121

2222
/**
2323
* @var \Magento\Framework\Filesystem\Directory\ReadInterface $reader
@@ -44,6 +44,8 @@ public function getPaths()
4444
{
4545
// Locate composer.json for magento2-base module
4646
$filesPathList = [];
47+
48+
// phpcs:ignore Magento2.Security.IncludeFile.FoundIncludeFile
4749
$vendorDir = require VENDOR_PATH;
4850
$basePackageComposerFilePath = $vendorDir . '/' . self::MAGENTO_BASE_PACKAGE_COMPOSER_JSON_FILE;
4951
if (!$this->reader->isExist($basePackageComposerFilePath)) {

setup/src/Magento/Setup/Test/Unit/Model/BasePackageInfoTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2016 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

0 commit comments

Comments
 (0)