Skip to content

Commit bd4726b

Browse files
committed
MAGETWO-65483: [Backport] - [Performance] Eliminate unnecessary file check FS operations (file_exists, is_file) - for 2.1.6
1 parent 3ad3f19 commit bd4726b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Block/Product/View/GalleryTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
use Magento\Catalog\Block\Product\ImageBlockBuilder;
99
use Magento\Framework\App\ObjectManager;
1010

11+
/**
12+
* Image gallery test
13+
*
14+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
15+
*/
1116
class GalleryTest extends \PHPUnit_Framework_TestCase
1217
{
1318
/**

app/code/Magento/Catalog/Test/Unit/Model/Product/ImageTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ public function testSetGetBaseFile()
240240
'angle' => null,
241241
'quality' => 80,
242242
];
243-
$url = 'http://magento.com/media/catalog/product/cache//beff4985b56e3afdbeabfc89641a4582/somefile.png';
244243
$this->paramsBuilder->expects(self::once())
245244
->method('build')
246245
->willReturn($miscParams);

0 commit comments

Comments
 (0)