static::
assertEquals('Cannot create new version. product by id product-id not found.',
$e->
getMessage());
static::
assertEquals(DataAbstractionLayerException::CANNOT_CREATE_NEW_VERSION,
$e->
getErrorCode());
} /**
* @DisabledFeatures("v6.6.0.0")
*
* @deprecated tag:v6.6.0.0 - will be removed
*/
public function testVersionMergeAlreadyLockedLegacy(): void
{ $e = DataAbstractionLayerException::
versionMergeAlreadyLocked('version-id'
);
static::
assertInstanceOf(VersionMergeAlreadyLockedException::
class,
$e);
} public function testVersionMergeAlreadyLocked(): void
{ $e = DataAbstractionLayerException::
versionMergeAlreadyLocked('version-id'
);
static::
assertEquals(Response::HTTP_BAD_REQUEST,
$e->
getStatusCode());
static::
assertEquals(DataAbstractionLayerException::VERSION_MERGE_ALREADY_LOCKED,
$e->
getErrorCode());
static::
assertEquals('Merging of version version-id is locked, as the merge is already running by another process.',
$e->
getMessage());
}