@@ -37,6 +37,11 @@ class NewVideoTest extends \PHPUnit_Framework_TestCase
37
37
*/
38
38
protected $ jsonEncoderMock ;
39
39
40
+ /**
41
+ * @var \Magento\ProductVideo\Helper\Media|\PHPUnit_Framework_MockObject_MockObject
42
+ */
43
+ protected $ mediaHelper ;
44
+
40
45
/**
41
46
* @var \Magento\Framework\TestFramework\Unit\Helper\ObjectManager
42
47
* |\Magento\ProductVideo\Block\Adminhtml\Product\Edit\NewVideo
@@ -46,6 +51,7 @@ class NewVideoTest extends \PHPUnit_Framework_TestCase
46
51
public function setUp ()
47
52
{
48
53
$ this ->contextMock = $ this ->getMock ('\Magento\Backend\Block\Template\Context ' , [], [], '' , false );
54
+ $ this ->mediaHelper = $ this ->getMock ('\Magento\ProductVideo\Helper\Media ' , [], [], '' , false );
49
55
$ this ->mathRandom = $ this ->getMock ('\Magento\Framework\Math\Random ' , [], [], '' , false );
50
56
$ this ->urlBuilder = $ this ->getMock ('\Magento\Framework\UrlInterface ' , [], [], '' , false );
51
57
$ this ->contextMock ->expects ($ this ->any ())->method ('getMathRandom ' )->willReturn ($ this ->mathRandom );
@@ -60,9 +66,11 @@ public function setUp()
60
66
'\Magento\ProductVideo\Block\Adminhtml\Product\Edit\NewVideo ' ,
61
67
[
62
68
'context ' => $ this ->contextMock ,
69
+ 'mediaHelper ' => $ this ->mediaHelper ,
70
+ 'urlBuilder ' => $ this ->urlBuilder ,
71
+ 'jsonEncoder ' => $ this ->jsonEncoderMock ,
63
72
'registry ' => $ this ->registryMock ,
64
73
'formFactory ' => $ this ->formFactoryMock ,
65
- 'jsonEncoder ' => $ this ->jsonEncoderMock
66
74
]
67
75
);
68
76
}
0 commit comments