Skip to content

Commit 1f826f7

Browse files
committed
ACP2E-1245: "Something went wrong" error is displayed when clearing the completed bulk tasks.
1 parent 4478773 commit 1f826f7

File tree

1 file changed

+10
-0
lines changed
  • app/code/Magento/AsynchronousOperations/Test/Unit/Controller/Adminhtml/Notification

1 file changed

+10
-0
lines changed

app/code/Magento/AsynchronousOperations/Test/Unit/Controller/Adminhtml/Notification/DismissTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ public function testExecute()
8181
->with(ResultFactory::TYPE_JSON, [])
8282
->willReturn($this->jsonResultMock);
8383

84+
$this->jsonResultMock->expects($this->once())
85+
->method('setData')
86+
->with([''])
87+
->willReturn($this->jsonResultMock);
88+
8489
$this->assertEquals($this->jsonResultMock, $this->model->execute());
8590
}
8691

@@ -98,6 +103,11 @@ public function testExecuteSetsBadRequestResponseStatusIfBulkWasNotAcknowledgedC
98103
->with(ResultFactory::TYPE_JSON, [])
99104
->willReturn($this->jsonResultMock);
100105

106+
$this->jsonResultMock->expects($this->once())
107+
->method('setData')
108+
->with([''])
109+
->willReturn($this->jsonResultMock);
110+
101111
$this->notificationManagementMock->expects($this->once())
102112
->method('acknowledgeBulks')
103113
->with($bulkUuids)

0 commit comments

Comments
 (0)