File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
app/code/Magento/Catalog/Test/Unit/Helper Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ class ImageTest extends \PHPUnit_Framework_TestCase
42
42
*/
43
43
protected $ scopeConfig ;
44
44
45
+ /**
46
+ * @var \Magento\Catalog\Model\View\Asset\PlaceholderFactory|\PHPUnit_Framework_MockObject_MockObject
47
+ */
48
+ protected $ placeholderFactory ;
49
+
45
50
protected function setUp ()
46
51
{
47
52
$ this ->mockContext ();
@@ -54,11 +59,16 @@ protected function setUp()
54
59
$ this ->viewConfig = $ this ->getMockBuilder (\Magento \Framework \View \ConfigInterface::class)
55
60
->getMockForAbstractClass ();
56
61
62
+ $ this ->placeholderFactory = $ this ->getMockBuilder (\Magento \Catalog \Model \View \Asset \PlaceholderFactory::class)
63
+ ->disableOriginalConstructor ()
64
+ ->getMock ();
65
+
57
66
$ this ->helper = new \Magento \Catalog \Helper \Image (
58
67
$ this ->context ,
59
68
$ this ->imageFactory ,
60
69
$ this ->assetRepository ,
61
- $ this ->viewConfig
70
+ $ this ->viewConfig ,
71
+ $ this ->placeholderFactory
62
72
);
63
73
}
64
74
You can’t perform that action at this time.
0 commit comments