Commit 8415dac1 authored by Loparev's avatar Loparev
Browse files

Added limit 1 to search TR by asset key id request

parent 7b4a2805
......@@ -140,6 +140,7 @@ class TranslationRequestManager {
$search_params->setOriginalAssetKey($asset_key);
$search_params->setTargetAssetKey($asset_key);
$search_params->setTargetLocaleId($job->getRemoteTargetLanguage());
$search_params->setLimit(1);
$translation_requests = $this->apiWrapper->searchTranslationRequest($this->getBucketName($job), $search_params);
......
......@@ -236,6 +236,7 @@ class TranslationRequestManagerTest extends SmartlingTestBase {
$search_params->setOriginalAssetKey($asset_key);
$search_params->setTargetAssetKey($asset_key);
$search_params->setTargetLocaleId($this->job->getRemoteTargetLanguage());
$search_params->setLimit(1);
$translation_request_manager_mock = $this
->getMockBuilder(TranslationRequestManager::class)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment