We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c489934 commit 4c7dfe0Copy full SHA for 4c7dfe0
app/code/Magento/User/Test/Unit/Controller/Adminhtml/User/SaveTest.php
@@ -151,10 +151,10 @@ public function testExecuteValidationFailure()
151
$this->controller->expects($this->once())
152
->method('redirectToEdit')
153
->with($this->userModelMock, $postData)
154
- ->willReturnCallback(function ($model, $data) {
155
- $model->getId();
156
- $this->sessionMock->setUserData($data);
157
- });
+ ->will($this->returnCallback(function () use ($postData) {
+ $this->sessionMock->setUserData($postData);
+ }));
+
158
$this->controller->execute();
159
}
160
0 commit comments