Skip to content

Commit afd2d79

Browse files
author
Mohan Ahuja
committed
ACP2E-726: Unable to query bulk operations by search criteria using REST Api
- Fixed integration test failures
1 parent 98bdd0c commit afd2d79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function testExecute(): void
103103
);
104104
$this->assertEquals(1, $collection->count());
105105
$operation = $collection->getFirstItem();
106-
$this->assertEquals(1, $operation->getId());
106+
$this->assertEquals(1, $operation->getOperationKey());
107107
$this->assertEquals(0, $operation->getErrorCode());
108108
$this->assertEquals('Unknown Error', $operation->getResultMessage());
109109
}

dev/tests/integration/testsuite/Magento/AsynchronousOperations/Model/OperationManagementTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function testGetBulkStatus()
6161
}
6262
/** @var OperationInterface $operation */
6363
$operation = array_shift($operations);
64-
$operationId = $operation->getId();
64+
$operationId = $operation->getOperationKey();
6565

6666
$this->assertTrue($this->model->changeOperationStatus(
6767
'bulk-uuid-5',
@@ -74,7 +74,7 @@ public function testGetBulkStatus()
7474
$select = $connection->select()
7575
->from($table)
7676
->where("bulk_uuid = ?", 'bulk-uuid-5')
77-
->where("id = ?", $operationId);
77+
->where("operation_key = ?", $operationId);
7878
$updatedOperation = $connection->fetchRow($select);
7979

8080
$this->assertEquals(OperationInterface::STATUS_TYPE_OPEN, $updatedOperation['status']);

0 commit comments

Comments
 (0)