File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/AsynchronousOperations
Controller/Adminhtml/Notification
Test/Unit/Controller/Adminhtml/Notification Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function execute()
5555 $ isAcknowledged = $ this ->notificationManagement ->acknowledgeBulks ($ bulkUuids );
5656
5757 /** @var \Magento\Framework\Controller\Result\Json $result */
58- $ result = $ this ->resultFactory ->create (ResultFactory::TYPE_JSON );
58+ $ result = $ this ->resultFactory ->create (ResultFactory::TYPE_RAW );
5959 if (!$ isAcknowledged ) {
6060 $ result ->setHttpResponseCode (400 );
6161 }
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public function testExecuteSetsBadRequestResponseStatusIfBulkWasNotAcknowledgedC
9595
9696 $ this ->resultFactoryMock ->expects ($ this ->once ())
9797 ->method ('create ' )
98- ->with (ResultFactory::TYPE_JSON , [])
98+ ->with (ResultFactory::TYPE_RAW , [])
9999 ->willReturn ($ this ->jsonResultMock );
100100
101101 $ this ->notificationManagementMock ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments