Skip to content

Commit d197f23

Browse files
committed
MAGETWO-93776: [Forwardport] Stabilization
1 parent 49418a6 commit d197f23

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

lib/internal/Magento/Framework/Indexer/Test/Unit/MultiDimensionProviderTest.php

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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\Indexer\Test\Unit;
89

@@ -57,22 +58,22 @@ public function testWithMultipleDataProviders()
5758
{
5859
// prepare expected dimensions
5960
$dimensionXData = [
60-
$this->getDimensionMock('x', 1),
61-
$this->getDimensionMock('x', 2),
62-
$this->getDimensionMock('x', 3),
61+
$this->getDimensionMock('x', '1'),
62+
$this->getDimensionMock('x', '2'),
63+
$this->getDimensionMock('x', '3'),
6364
];
6465

6566
$dimensionYData = [
66-
$this->getDimensionMock('y', 1),
67-
$this->getDimensionMock('y', 2),
68-
$this->getDimensionMock('y', 3),
69-
$this->getDimensionMock('y', 4),
70-
$this->getDimensionMock('y', 5),
67+
$this->getDimensionMock('y', '1'),
68+
$this->getDimensionMock('y', '2'),
69+
$this->getDimensionMock('y', '3'),
70+
$this->getDimensionMock('y', '4'),
71+
$this->getDimensionMock('y', '5'),
7172
];
7273

7374
$dimensionZData = [
74-
$this->getDimensionMock('z', 1),
75-
$this->getDimensionMock('z', 2),
75+
$this->getDimensionMock('z', '1'),
76+
$this->getDimensionMock('z', '2'),
7677
];
7778

7879
$expectedDimensions = [];
@@ -113,14 +114,14 @@ public function testMultiDimensionProviderIsReIterable()
113114
{
114115
// prepare expected dimensions
115116
$dimensionXData = [
116-
$this->getDimensionMock('x', 1),
117-
$this->getDimensionMock('x', 2),
118-
$this->getDimensionMock('x', 3),
117+
$this->getDimensionMock('x', '1'),
118+
$this->getDimensionMock('x', '2'),
119+
$this->getDimensionMock('x', '3'),
119120
];
120121

121122
$dimensionZData = [
122-
$this->getDimensionMock('z', 1),
123-
$this->getDimensionMock('z', 2),
123+
$this->getDimensionMock('z', '1'),
124+
$this->getDimensionMock('z', '2'),
124125
];
125126

126127
// collect actual dimensions
@@ -179,17 +180,17 @@ public function testMultiDimensionProviderWithMixedDataProvider()
179180

180181
// prepare expected dimensions
181182
$dimensionXData = [
182-
$this->getDimensionMock('x', 1),
183-
$this->getDimensionMock('x', 2),
184-
$this->getDimensionMock('x', 3),
183+
$this->getDimensionMock('x', '1'),
184+
$this->getDimensionMock('x', '2'),
185+
$this->getDimensionMock('x', '3'),
185186
];
186187

187188
$dimensionYData = [
188-
$this->getDimensionMock('y', 1),
189-
$this->getDimensionMock('y', 2),
190-
$this->getDimensionMock('y', 3),
191-
$this->getDimensionMock('y', 4),
192-
$this->getDimensionMock('y', 5),
189+
$this->getDimensionMock('y', '1'),
190+
$this->getDimensionMock('y', '2'),
191+
$this->getDimensionMock('y', '3'),
192+
$this->getDimensionMock('y', '4'),
193+
$this->getDimensionMock('y', '5'),
193194
];
194195

195196
$dimensionZData = [];

0 commit comments

Comments
 (0)