File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
app/code/Magento/Catalog/Test/Unit/Block/Product Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ public function createDataProvider(): array
95
95
return [
96
96
$ this ->getTestDataWithoutAttributes (),
97
97
$ this ->getTestDataWithAttributes (),
98
+ $ this ->getTestDataWithoutDimensions ()
98
99
];
99
100
}
100
101
@@ -209,4 +210,21 @@ private function getTestDataWithAttributes(): array
209
210
],
210
211
];
211
212
}
213
+
214
+ /**
215
+ * @return array
216
+ */
217
+ private function getTestDataWithoutDimensions (): array
218
+ {
219
+ $ data = $ this ->getTestDataWithoutAttributes ();
220
+
221
+ $ data ['data ' ]['imageParamsBuilder ' ]['image_width ' ] = null ;
222
+ $ data ['data ' ]['imageParamsBuilder ' ]['image_height ' ] = null ;
223
+
224
+ $ data ['expected ' ]['data ' ]['width ' ] = null ;
225
+ $ data ['expected ' ]['data ' ]['height ' ] = null ;
226
+ $ data ['expected ' ]['data ' ]['ratio ' ] = 1.0 ;
227
+
228
+ return $ data ;
229
+ }
212
230
}
You can’t perform that action at this time.
0 commit comments