Skip to content

Commit a86d795

Browse files
committed
Static test fix
1 parent 6c47a75 commit a86d795

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

app/code/Magento/Indexer/Test/Unit/Controller/Adminhtml/Indexer/MassInvalidateTest.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
namespace Magento\Indexer\Test\Unit\Controller\Adminhtml\Indexer;
77

88
/**
9+
* Mass invalidate Test
10+
*
911
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1012
*/
1113
class MassInvalidateTest extends \PHPUnit\Framework\TestCase
@@ -91,7 +93,9 @@ class MassInvalidateTest extends \PHPUnit\Framework\TestCase
9193
*/
9294
protected function setUp()
9395
{
94-
$this->contextMock = $this->createPartialMock(\Magento\Backend\App\Action\Context::class, [
96+
$this->contextMock = $this->createPartialMock(
97+
\Magento\Backend\App\Action\Context::class,
98+
[
9599
'getAuthorization',
96100
'getSession',
97101
'getActionFlag',
@@ -107,14 +111,17 @@ protected function setUp()
107111
'getObjectManager',
108112
'getMessageManager',
109113
'getResultRedirectFactory',
110-
]);
114+
]
115+
);
111116

112117
$this->response = $this->createPartialMock(
113118
\Magento\Framework\App\ResponseInterface::class,
114119
['setRedirect', 'sendResponse']
115120
);
116121

117-
$this->view = $this->createPartialMock(\Magento\Framework\App\ViewInterface::class, [
122+
$this->view = $this->createPartialMock(
123+
\Magento\Framework\App\ViewInterface::class,
124+
[
118125
'loadLayout',
119126
'getPage',
120127
'getConfig',
@@ -129,7 +136,8 @@ protected function setUp()
129136
'addActionLayoutHandles',
130137
'setIsLayoutLoaded',
131138
'isLayoutLoaded'
132-
]);
139+
]
140+
);
133141

134142
$this->session = $this->createPartialMock(\Magento\Backend\Model\Session::class, ['setIsUrlNotice']);
135143
$this->session->expects($this->any())->method('setIsUrlNotice')->willReturn($this->objectManager);

0 commit comments

Comments
 (0)