Skip to content

Commit 4c7dfe0

Browse files
committed
ACP2E-3657: Weak Password Management
1 parent c489934 commit 4c7dfe0

File tree

1 file changed

+4
-4
lines changed
  • app/code/Magento/User/Test/Unit/Controller/Adminhtml/User

1 file changed

+4
-4
lines changed

app/code/Magento/User/Test/Unit/Controller/Adminhtml/User/SaveTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ public function testExecuteValidationFailure()
151151
$this->controller->expects($this->once())
152152
->method('redirectToEdit')
153153
->with($this->userModelMock, $postData)
154-
->willReturnCallback(function ($model, $data) {
155-
$model->getId();
156-
$this->sessionMock->setUserData($data);
157-
});
154+
->will($this->returnCallback(function () use ($postData) {
155+
$this->sessionMock->setUserData($postData);
156+
}));
157+
158158
$this->controller->execute();
159159
}
160160
}

0 commit comments

Comments
 (0)