Skip to content

Commit ae5ab15

Browse files
author
Michael Logvin
committed
MAGETWO-33053: MTF Configuration pull request
1 parent 2e25898 commit ae5ab15

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

dev/tests/functional/lib/Magento/Mtf/Util/Protocol/CurlTransport/BackendDecorator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(CurlTransport $transport, Config $configuration)
6565
*/
6666
protected function authorize()
6767
{
68-
$url = $this->configuration->getParameter('application/appBackendUrl') .
68+
$url = $_ENV['app_backend_url'] .
6969
$this->configuration->getParameter('application/backendLoginUrl');
7070
$data = [
7171
'login[username]' => $this->configuration->getParameter('application/backendLogin'),

dev/tests/functional/tests/app/Magento/Bundle/Test/Handler/Curl/CreateBundle.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ protected function _getUrl(array $config)
158158
foreach ($requestParams as $key => $value) {
159159
$params .= $key . '/' . $value . '/';
160160
}
161-
$backendUrl = $this->_configuration->get('application', 'appBackendUrl');
162-
return $backendUrl . 'catalog/product/save/' . $params . 'popup/1/back/edit';
161+
return $_ENV['app_backend_url'] . 'catalog/product/save/' . $params . 'popup/1/back/edit';
163162
}
164163

165164
/**

dev/tests/functional/tests/app/Magento/Catalog/Test/Handler/CatalogProductSimple/Curl.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,6 @@ protected function getUrl(array $config)
437437
foreach ($requestParams as $key => $value) {
438438
$params .= $key . '/' . $value . '/';
439439
}
440-
$backendUrl = $this->_configuration->get('application', 'appBackendUrl');
441-
return $backendUrl . 'catalog/product/save/' . $params . 'popup/1/back/edit';
440+
return $_ENV['app_backend_url'] . 'catalog/product/save/' . $params . 'popup/1/back/edit';
442441
}
443442
}

dev/tests/functional/tests/app/Magento/Catalog/Test/Handler/Curl/CreateProduct.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ protected function _getUrl(array $config)
7474
foreach ($requestParams as $key => $value) {
7575
$params .= $key . '/' . $value . '/';
7676
}
77-
$backendUrl = $this->_configuration->get('application', 'appBackendUrl');
78-
return $backendUrl . 'catalog/product/save/' . $params . 'popup/1/back/edit';
77+
return $_ENV['app_backend_url'] . 'catalog/product/save/' . $params . 'popup/1/back/edit';
7978
}
8079

8180
/**

dev/tests/functional/tests/app/Magento/Core/Test/Handler/ConfigData/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function applyConfigSettings(array $data, $section)
9797
*/
9898
protected function getUrl($section)
9999
{
100-
return $this->_configuration->getParameter('application/appBackendUrl') .
100+
return $_ENV['app_backend_url'] .
101101
'admin/system_config/save/section/' . $section;
102102
}
103103
}

dev/tests/functional/tests/app/Magento/Downloadable/Test/Handler/Curl/CreateDownloadable.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ protected function getUrl(array $config)
100100
foreach ($requestParams as $key => $value) {
101101
$params .= $key . '/' . $value . '/';
102102
}
103-
$backendUrl = $this->_configuration->get('application', 'appBackendUrl');
104-
return $backendUrl . 'catalog/product/save/' . $params . 'popup/1/back/edit';
103+
return $_ENV['app_backend_url'] . 'catalog/product/save/' . $params . 'popup/1/back/edit';
105104
}
106105

107106
/**

0 commit comments

Comments
 (0)