Skip to content

Commit 003ed50

Browse files
author
Dmytro Poperechnyy
committed
MAGETWO-34989: Implement getDefaultRedirect() method
- Method initContext accepts argument of array type;
1 parent bdd4b6f commit 003ed50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/ProductTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ abstract class ProductTest extends \PHPUnit_Framework_TestCase
2121
/**
2222
* Init context object
2323
*
24-
* @param null|array $additionalParams
24+
* @param array $additionalParams
2525
* @return \PHPUnit_Framework_MockObject_MockObject
2626
*/
27-
protected function initContext($additionalParams = [])
27+
protected function initContext(array $additionalParams = [])
2828
{
2929
$productActionMock = $this->getMock('Magento\Catalog\Model\Product\Action', [], [], '', false);
3030
$objectManagerMock = $this->getMockForAbstractClass('Magento\Framework\ObjectManagerInterface');

0 commit comments

Comments
 (0)