Skip to content

Commit 9817c31

Browse files
author
Michael Logvin
committed
MAGETWO-33053: MTF Configuration pull request
1 parent 515067a commit 9817c31

File tree

3 files changed

+7
-7
lines changed
  • dev/tests/functional/tests/app/Magento

3 files changed

+7
-7
lines changed

dev/tests/functional/tests/app/Magento/CheckoutAgreements/Test/Handler/CheckoutAgreement/Curl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
use Magento\Mtf\Fixture\FixtureInterface;
1010
use Magento\Mtf\Handler\Curl as AbstractCurl;
11-
use Magento\Mtf\System\Config;
11+
use Magento\Mtf\Config;
1212
use Magento\Mtf\Util\Protocol\CurlInterface;
1313
use Magento\Mtf\Util\Protocol\CurlTransport;
1414
use Magento\Mtf\Util\Protocol\CurlTransport\BackendDecorator;
@@ -53,7 +53,7 @@ public function persist(FixtureInterface $fixture = null)
5353
{
5454
$url = $_ENV['app_backend_url'] . $this->url;
5555
$data = $this->prepareData($fixture);
56-
$curl = new BackendDecorator(new CurlTransport(), new Config());
56+
$curl = new BackendDecorator(new CurlTransport(), $this->_configuration);
5757
$curl->write(CurlInterface::POST, $url, '1.1', [], $data);
5858
$response = $curl->read();
5959
$curl->close();

dev/tests/functional/tests/app/Magento/CurrencySymbol/Test/Handler/CurrencySymbolEntity/Curl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
use Magento\Mtf\Fixture\FixtureInterface;
1010
use Magento\Mtf\Handler\Curl as AbstractCurl;
11-
use Magento\Mtf\System\Config;
11+
use Magento\Mtf\Config;
1212
use Magento\Mtf\Util\Protocol\CurlInterface;
1313
use Magento\Mtf\Util\Protocol\CurlTransport;
1414
use Magento\Mtf\Util\Protocol\CurlTransport\BackendDecorator;
@@ -29,7 +29,7 @@ public function persist(FixtureInterface $fixture = null)
2929
{
3030
$data = $fixture->getData();
3131
$url = $_ENV['app_backend_url'] . 'admin/system_currencysymbol/save';
32-
$curl = new BackendDecorator(new CurlTransport(), new Config());
32+
$curl = new BackendDecorator(new CurlTransport(), $this->_configuration);
3333
$curl->write(CurlInterface::POST, $url, '1.0', [], $data);
3434
$curl->read();
3535
$curl->close();

dev/tests/functional/tests/app/Magento/User/Test/Fixture/User/CurrentPassword.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ class CurrentPassword implements FixtureInterface
3636
public function __construct(array $params, $data = '')
3737
{
3838
$this->params = $params;
39-
/** @var \Magento\Mtf\System\Config $systemConfig */
39+
/** @var \Magento\Mtf\Config $systemConfig */
4040
if ($data == '%current_password%') {
41-
$systemConfig = ObjectManager::getInstance()->create('Magento\Mtf\System\Config');
42-
$data = $systemConfig->getConfigParam('application/backend_user_credentials/password');
41+
$systemConfig = ObjectManager::getInstance()->create('Magento\Mtf\Config');
42+
$data = $systemConfig->getParameter('application/backendPassword');
4343
}
4444
$this->data = $data;
4545
}

0 commit comments

Comments
 (0)