Skip to content

Commit 6d002bf

Browse files
committed
ACP2E-1299: Search in user roles not working
1 parent f8a10cd commit 6d002bf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/User/Block/Role/Grid/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class User extends \Magento\Backend\Block\Widget\Grid\Extended
1717
{
1818
/**
19-
* Core registry
19+
* Framework class for Core Registry
2020
*
2121
* @var \Magento\Framework\Registry
2222
*/

app/code/Magento/User/Test/Unit/Block/Role/Grid/UserTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,9 @@ public function testGetUsersIncorrectInRoleUser(): void
319319
*/
320320
public function testGetUsers(): void
321321
{
322-
$paramValue = array("1");
323-
$this->requestInterfaceMock->expects($this->once())->method('getParam')->with('in_role_user')->willReturn($paramValue);
322+
$paramValue = ['1'];
323+
$this->requestInterfaceMock->expects($this->once())->method('getParam')
324+
->with('in_role_user')->willReturn($paramValue);
324325
$this->assertEquals($paramValue, $this->model->getUsers());
325326
}
326327
}

0 commit comments

Comments
 (0)