Skip to content

Commit 772bb4c

Browse files
committed
MC-14884: Fix static tests
1 parent 432b6e0 commit 772bb4c

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/Validator/TierPriceTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ protected function setUp(): void
4141
$this->groupRepositoryInterface = $this->createMock(
4242
GroupRepository::class
4343
);
44-
$this->searchCriteriaSearch = $this->createMock(SearchCriteria::class);
44+
$searchCriteriaSearch = $this->createMock(SearchCriteria::class);
4545
$this->searchCriteriaBuilder = $this->createMock(SearchCriteriaBuilder::class);
46-
$this->searchCriteriaBuilder->expects($this->any())->method('create')->willReturn($this->searchCriteriaSearch);
46+
$this->searchCriteriaBuilder->expects($this->any())->method('create')
47+
->willReturn($searchCriteriaSearch);
4748
$this->storeResolver = $this->createMock(
4849
StoreResolver::class
4950
);

dev/tests/integration/testsuite/Magento/Framework/View/LayoutTestWithExceptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LayoutTestWithExceptions extends \PHPUnit\Framework\TestCase
1414
*/
1515
protected $layout;
1616

17-
protected function setUp(): void
17+
protected function setUp()
1818
{
1919
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
2020
$layoutFactory = $objectManager->get(\Magento\Framework\View\LayoutFactory::class);

lib/internal/Magento/Framework/Setup/Declaration/Schema/Dto/Factories/Integer.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Framework\Setup\Declaration\Schema\Dto\Factories;
89

9-
use Magento\Framework\DB\Adapter\SqlVersionProvider;
1010
use Magento\Framework\ObjectManagerInterface;
1111

1212
/**
@@ -24,11 +24,6 @@ class Integer implements FactoryInterface
2424
*/
2525
private $className;
2626

27-
/**
28-
* @var SqlVersionProvider
29-
*/
30-
private $sqlVersionProvider;
31-
3227
/**
3328
* Constructor.
3429
*

lib/internal/Magento/Framework/TestFramework/Unit/Block/Adminhtml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Adminhtml extends \PHPUnit\Framework\TestCase
109109

110110
/**
111111
*/
112-
protected function setUp(): void
112+
protected function setUp()
113113
{
114114
// These mocks are accessed via context
115115
$this->_designMock = $this->_makeMock(\Magento\Framework\View\DesignInterface::class);

0 commit comments

Comments
 (0)