Skip to content

Commit 922904e

Browse files
author
Bryant Luk
committed
MAGETWO-37464: Merge and Fix Builds
- Fix test
1 parent 42c37dd commit 922904e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductRepositoryInterfaceTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ public function testProductWithMediaGallery()
314314
$testImagePath = __DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'test_image.jpg';
315315
$encodedImage = base64_encode(file_get_contents($testImagePath));
316316
//create a product with media gallery
317-
$filename1 = 'tiny1' . time();
318-
$filename2 = 'tiny2' . time();
317+
$filename1 = 'tiny1' . time() . '.jpg';
318+
$filename2 = 'tiny2' . time() . '.jpeg';
319319
$productData = $this->getSimpleProductData();
320320
$productData['media_gallery_entries'] = [
321321
[
@@ -355,14 +355,14 @@ public function testProductWithMediaGallery()
355355
'position' => 1,
356356
'disabled' => true,
357357
'types' => [],
358-
'file' => '/t/i/' . $filename1 . '.jpg',
358+
'file' => '/t/i/' . $filename1,
359359
],
360360
[
361361
'label' => 'tiny2',
362362
'position' => 2,
363363
'disabled' => false,
364364
'types' => ['image', 'small_image'],
365-
'file' => '/t/i/' . $filename2 . '.jpg',
365+
'file' => '/t/i/' . $filename2,
366366
],
367367
];
368368
$this->assertEquals($expectedValue, $mediaGalleryEntries);
@@ -374,7 +374,7 @@ public function testProductWithMediaGallery()
374374
'position' => 1,
375375
'disabled' => false,
376376
'types' => ['image', 'small_image'],
377-
'file' => '/t/i/' . $filename1 . '.jpg',
377+
'file' => '/t/i/' . $filename1,
378378
],
379379
];
380380
$response = $this->updateProduct($response);
@@ -387,7 +387,7 @@ public function testProductWithMediaGallery()
387387
'position' => 1,
388388
'disabled' => false,
389389
'types' => ['image', 'small_image'],
390-
'file' => '/t/i/' . $filename1 . '.jpg',
390+
'file' => '/t/i/' . $filename1,
391391
]
392392
];
393393
$this->assertEquals($expectedValue, $mediaGalleryEntries);

0 commit comments

Comments
 (0)