Skip to content

Commit a917ee7

Browse files
engcom-Foxtrotp-bystritsky
authored andcommitted
#21798: Static test fix.
1 parent 8892b0b commit a917ee7

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

lib/internal/Magento/Framework/View/Test/Unit/Page/Config/RendererTest.php

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,14 @@ public function testRenderAssets($groupOne, $groupTwo, $expectedResult)
321321
->willReturn($groupAssetsOne);
322322
$groupMockOne->expects($this->any())
323323
->method('getProperty')
324-
->willReturnMap([
325-
[GroupedCollection::PROPERTY_CAN_MERGE, true],
326-
[GroupedCollection::PROPERTY_CONTENT_TYPE, $groupOne['type']],
327-
['attributes', $groupOne['attributes']],
328-
['ie_condition', $groupOne['condition']],
329-
]);
324+
->willReturnMap(
325+
[
326+
[GroupedCollection::PROPERTY_CAN_MERGE, true],
327+
[GroupedCollection::PROPERTY_CONTENT_TYPE, $groupOne['type']],
328+
['attributes', $groupOne['attributes']],
329+
['ie_condition', $groupOne['condition']],
330+
]
331+
);
330332

331333
$assetMockTwo = $this->createMock(\Magento\Framework\View\Asset\AssetInterface::class);
332334
$assetMockTwo->expects($this->once())
@@ -344,12 +346,14 @@ public function testRenderAssets($groupOne, $groupTwo, $expectedResult)
344346
->willReturn($groupAssetsTwo);
345347
$groupMockTwo->expects($this->any())
346348
->method('getProperty')
347-
->willReturnMap([
348-
[GroupedCollection::PROPERTY_CAN_MERGE, true],
349-
[GroupedCollection::PROPERTY_CONTENT_TYPE, $groupTwo['type']],
350-
['attributes', $groupTwo['attributes']],
351-
['ie_condition', $groupTwo['condition']],
352-
]);
349+
->willReturnMap(
350+
[
351+
[GroupedCollection::PROPERTY_CAN_MERGE, true],
352+
[GroupedCollection::PROPERTY_CONTENT_TYPE, $groupTwo['type']],
353+
['attributes', $groupTwo['attributes']],
354+
['ie_condition', $groupTwo['condition']],
355+
]
356+
);
353357

354358
$this->pageConfigMock->expects($this->once())
355359
->method('getAssetCollection')

0 commit comments

Comments
 (0)