File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
app/code/Magento/AsynchronousOperations/Test/Unit/Controller/Adminhtml/Notification Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments