Skip to content

Commit f7cc122

Browse files
committed
MC-34039: Merge 2.4-develop into 2.4-develop-php74
1 parent 67c535b commit f7cc122

File tree

16 files changed

+41
-57
lines changed

16 files changed

+41
-57
lines changed

app/code/Magento/Bundle/Test/Unit/Model/Product/TypeTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use Magento\CatalogInventory\Api\StockStateInterface;
2828
use Magento\CatalogInventory\Model\StockRegistry;
2929
use Magento\CatalogInventory\Model\StockState;
30-
use Magento\CatalogRule\Model\ResourceModel\Product\CollectionProcessor;
3130
use Magento\Framework\DataObject;
3231
use Magento\Framework\EntityManager\EntityMetadataInterface;
3332
use Magento\Framework\EntityManager\MetadataPool;
@@ -174,12 +173,6 @@ protected function setUp(): void
174173
->disableOriginalConstructor()
175174
->getMock();
176175

177-
$this->catalogRuleProcessor = $this->getMockBuilder(
178-
CollectionProcessor::class
179-
)
180-
->disableOriginalConstructor()
181-
->getMock();
182-
183176
$this->serializer = $this->getMockBuilder(Json::class)
184177
->setMethods(null)
185178
->disableOriginalConstructor()

app/code/Magento/Captcha/Test/Unit/Model/DefaultTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ protected function _getHelperStub()
290290
Data::class
291291
)->disableOriginalConstructor()
292292
->setMethods(
293-
['getConfig', 'getFonts', '_getWebsiteCode', 'getImgUrl']
294-
)->getMock();
293+
['getConfig', 'getFonts', '_getWebsiteCode', 'getImgUrl']
294+
)->getMock();
295295

296296
$helper->expects(
297297
$this->any()

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category/SaveTest.php

Lines changed: 25 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -283,55 +283,47 @@ public function testExecute($categoryId, $storeId, $parentId)
283283
$this->requestMock->expects($this->atLeastOnce())
284284
->method('getParam')
285285
->willReturnMap(
286-
287-
[
288-
['id', false, $categoryId],
289-
['store', null, $storeId],
290-
['parent', null, $parentId],
291-
]
292-
286+
[
287+
['id', false, $categoryId],
288+
['store', null, $storeId],
289+
['parent', null, $parentId],
290+
]
293291
);
294292
$this->objectManagerMock->expects($this->atLeastOnce())
295293
->method('create')
296294
->willReturn($categoryMock);
297295
$this->objectManagerMock->expects($this->atLeastOnce())
298296
->method('get')
299297
->willReturnMap(
300-
301-
[
302-
[Session::class, $sessionMock],
303-
[Registry::class, $registryMock],
304-
[Config::class, $wysiwygConfigMock],
305-
[StoreManagerInterface::class, $storeManagerMock],
306-
]
307-
298+
[
299+
[Session::class, $sessionMock],
300+
[Registry::class, $registryMock],
301+
[Config::class, $wysiwygConfigMock],
302+
[StoreManagerInterface::class, $storeManagerMock],
303+
]
308304
);
309305
$categoryMock->expects($this->once())
310306
->method('setStoreId')
311307
->with($storeId);
312308
$registryMock->expects($this->any())
313309
->method('register')
314310
->willReturnMap(
315-
316-
[
317-
['category', $categoryMock],
318-
['current_category', $categoryMock],
319-
]
320-
311+
[
312+
['category', $categoryMock],
313+
['current_category', $categoryMock],
314+
]
321315
);
322316
$wysiwygConfigMock->expects($this->once())
323317
->method('setStoreId')
324318
->with($storeId);
325319
$this->requestMock->expects($this->atLeastOnce())
326320
->method('getPost')
327321
->willReturnMap(
328-
329-
[
330-
['use_config', ['attribute']],
331-
['use_default', ['default-attribute']],
332-
['return_session_messages_only', true],
333-
]
334-
322+
[
323+
['use_config', ['attribute']],
324+
['use_default', ['default-attribute']],
325+
['return_session_messages_only', true],
326+
]
335327
);
336328
$this->requestMock->expects($this->atLeastOnce())
337329
->method('getPostValue')
@@ -375,13 +367,11 @@ public function testExecute($categoryId, $storeId, $parentId)
375367
$categoryMock->expects($this->atLeastOnce())
376368
->method('setData')
377369
->willReturnMap(
378-
379-
[
380-
['attribute', null, true],
381-
['default-attribute', false, true],
382-
['use_post_data_config', ['attribute'], true],
383-
]
384-
370+
[
371+
['attribute', null, true],
372+
['default-attribute', false, true],
373+
['use_post_data_config', ['attribute'], true],
374+
]
385375
);
386376
$categoryMock->expects($this->once())
387377
->method('getDefaultAttributeSetId')

app/code/Magento/Catalog/Test/Unit/Model/FrontendStorageConfigurationPoolTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class FrontendStorageConfigurationPoolTest extends TestCase
2828

2929
protected function setUp(): void
3030
{
31-
$this->defaultStorageConfiguration = $this->getMockForAbstractClass(FrontendStorageConfigurationInterface::class);
31+
$this->defaultStorageConfiguration =
32+
$this->getMockForAbstractClass(FrontendStorageConfigurationInterface::class);
3233
$productStorageConfiguration = $this->getMockForAbstractClass(ProductInterface::class);
3334
$this->objectManagerHelper = new ObjectManagerHelper($this);
3435
$this->model = $this->objectManagerHelper->getObject(

app/code/Magento/Eav/Test/Unit/Model/Entity/Attribute/Backend/ArrayBackendTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function setUp(): void
4040
public function testValidate($data)
4141
{
4242
$this->_attribute->expects($this->atLeastOnce())->method('getAttributeCode')->willReturn('code');
43-
$product = new DataObject(['code' => $data, 'empty' => '']);
43+
$product = new DataObject(['code' => $data, 'empty' => null]);
4444
$this->_model->validate($product);
4545
$this->assertEquals('1,2,3', $product->getCode());
4646
$this->assertNull($product->getEmpty());

app/code/Magento/LoginAsCustomer/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-login-as-customer",
33
"description": "Allow for admin to enter a customer account",
44
"require": {
5-
"php": "~7.1.3||~7.2.0||~7.3.0",
5+
"php": "~7.3.0||~7.4.0",
66
"magento/framework": "*",
77
"magento/module-customer": "*",
88
"magento/module-login-as-customer-api": "*"

app/code/Magento/LoginAsCustomerApi/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-login-as-customer-api",
33
"description": "Allow for admin to enter a customer account",
44
"require": {
5-
"php": "~7.1.3||~7.2.0||~7.3.0",
5+
"php": "~7.3.0||~7.4.0",
66
"magento/framework": "*"
77
},
88
"type": "magento2-module",

app/code/Magento/LoginAsCustomerLog/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-login-as-customer-log",
33
"description": "",
44
"require": {
5-
"php": "~7.1.3||~7.2.0||~7.3.0",
5+
"php": "~7.3.0||~7.4.0",
66
"magento/framework": "*",
77
"magento/module-backend": "*",
88
"magento/module-customer": "*",

app/code/Magento/LoginAsCustomerPageCache/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-login-as-customer-page-cache",
33
"description": "",
44
"require": {
5-
"php": "~7.1.3||~7.2.0||~7.3.0",
5+
"php": "~7.3.0||~7.4.0",
66
"magento/framework": "*",
77
"magento/module-customer": "*",
88
"magento/module-store": "*"

app/code/Magento/LoginAsCustomerSales/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/module-login-as-customer-sales",
33
"description": "",
44
"require": {
5-
"php": "~7.1.3||~7.2.0||~7.3.0",
5+
"php": "~7.3.0||~7.4.0",
66
"magento/framework": "*",
77
"magento/module-backend": "*",
88
"magento/module-checkout": "*",

0 commit comments

Comments
 (0)