Skip to content

Commit eb2a805

Browse files
author
Nikita Sarychev
committed
fix static test
1 parent 1be7e8c commit eb2a805

File tree

2 files changed

+5
-5
lines changed
  • app/code/Magento/Backend

2 files changed

+5
-5
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Column/Filter/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected function _getCurrencyList()
162162
/**
163163
* Retrieve filter value
164164
*
165-
* @param null $index
165+
* @param string|null $index
166166
* @return array|null
167167
*/
168168
public function getValue($index = null)

app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/Column/Filter/PriceTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class PriceTest extends TestCase
2222
{
2323
/** @var RequestInterface|MockObject */
24-
private $_requestMock;
24+
private $requestMock;
2525

2626
/** @var Context|MockObject */
2727
private $context;
@@ -43,10 +43,10 @@ class PriceTest extends TestCase
4343

4444
protected function setUp(): void
4545
{
46-
$this->_requestMock = $this->getMockForAbstractClass(RequestInterface::class);
46+
$this->requestMock = $this->getMockForAbstractClass(RequestInterface::class);
4747

4848
$this->context = $this->createMock(Context::class);
49-
$this->context->expects($this->any())->method('getRequest')->willReturn($this->_requestMock);
49+
$this->context->expects($this->any())->method('getRequest')->willReturn($this->requestMock);
5050

5151
$this->helper = $this->createMock(Helper::class);
5252

@@ -80,7 +80,7 @@ public function testGetCondition()
8080
)->method(
8181
'getDefaultCurrency'
8282
)->with(
83-
$this->_requestMock
83+
$this->requestMock
8484
)->willReturn(
8585
'defaultCurrency'
8686
);

0 commit comments

Comments
 (0)