Skip to content

Commit 6009c2d

Browse files
author
Dmitry Kologrivov
committed
Merge branch 'MA-44227' into 'master3'
Ma 44227 See merge request !143
2 parents 857da28 + 79651d5 commit 6009c2d

File tree

1 file changed

+9
-1
lines changed
  • app/code/Magento/ProductVideo/Test/Unit/Block/Adminhtml/Product/Edit

1 file changed

+9
-1
lines changed

app/code/Magento/ProductVideo/Test/Unit/Block/Adminhtml/Product/Edit/NewVideoTest.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ class NewVideoTest extends \PHPUnit_Framework_TestCase
3737
*/
3838
protected $jsonEncoderMock;
3939

40+
/**
41+
* @var \Magento\ProductVideo\Helper\Media|\PHPUnit_Framework_MockObject_MockObject
42+
*/
43+
protected $mediaHelper;
44+
4045
/**
4146
* @var \Magento\Framework\TestFramework\Unit\Helper\ObjectManager
4247
* |\Magento\ProductVideo\Block\Adminhtml\Product\Edit\NewVideo
@@ -46,6 +51,7 @@ class NewVideoTest extends \PHPUnit_Framework_TestCase
4651
public function setUp()
4752
{
4853
$this->contextMock = $this->getMock('\Magento\Backend\Block\Template\Context', [], [], '', false);
54+
$this->mediaHelper = $this->getMock('\Magento\ProductVideo\Helper\Media', [], [], '', false);
4955
$this->mathRandom = $this->getMock('\Magento\Framework\Math\Random', [], [], '', false);
5056
$this->urlBuilder = $this->getMock('\Magento\Framework\UrlInterface', [], [], '', false);
5157
$this->contextMock->expects($this->any())->method('getMathRandom')->willReturn($this->mathRandom);
@@ -60,9 +66,11 @@ public function setUp()
6066
'\Magento\ProductVideo\Block\Adminhtml\Product\Edit\NewVideo',
6167
[
6268
'context' => $this->contextMock,
69+
'mediaHelper' => $this->mediaHelper,
70+
'urlBuilder' => $this->urlBuilder,
71+
'jsonEncoder' => $this->jsonEncoderMock,
6372
'registry' => $this->registryMock,
6473
'formFactory' => $this->formFactoryMock,
65-
'jsonEncoder' => $this->jsonEncoderMock
6674
]
6775
);
6876
}

0 commit comments

Comments
 (0)