Skip to content

Commit fe19b61

Browse files
committed
MC-42775: Async REST API Wrong status of task in bulk actions log
1 parent 6768a8f commit fe19b61

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

app/code/Magento/AsynchronousOperations/Test/Unit/Model/MessageControllerDecoratorTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
use Monolog\Test\TestCase;
2323
use PHPUnit\Framework\MockObject\MockObject;
2424

25+
/**
26+
* Test for MessageControllerDecorator
27+
*
28+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
29+
*/
2530
class MessageControllerDecoratorTest extends TestCase
2631
{
2732
/**
@@ -76,6 +81,9 @@ protected function setUp(): void
7681
);
7782
}
7883

84+
/**
85+
* Check that message lock is created and operation start time is updated
86+
*/
7987
public function testLock(): void
8088
{
8189
$bUuid = uniqid();

dev/tests/integration/testsuite/Magento/AsynchronousOperations/Cron/MarkIncompleteOperationsAsFailedTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace integration\testsuite\Magento\AsynchronousOperations\Cron;
8+
namespace Magento\AsynchronousOperations\Cron;
99

1010
use Magento\AsynchronousOperations\Api\Data\OperationInterface;
1111
use Magento\AsynchronousOperations\Api\Data\OperationInterfaceFactory;
1212
use Magento\AsynchronousOperations\Api\SaveMultipleOperationsInterface;
13-
use Magento\AsynchronousOperations\Cron\MarkIncompleteOperationsAsFailed;
1413
use Magento\AsynchronousOperations\Model\ResourceModel\Operation\Collection;
1514
use Magento\AsynchronousOperations\Model\ResourceModel\Operation\CollectionFactory;
1615
use Magento\Framework\App\ResourceConnection;

0 commit comments

Comments
 (0)