Skip to content

Commit 3757550

Browse files
author
Dmytro Vilchynskyi
committed
Merge remote-tracking branch 'origin/MAGETWO-63197' into PR_26042017
2 parents ab6cc89 + c540724 commit 3757550

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/TestCase/ConfigureSecureUrlsTest.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,14 @@ class ConfigureSecureUrlsTest extends Injectable
9393
*
9494
* @param FixtureFactory $fixtureFactory
9595
* @param SystemConfigEdit $configurationAdminPage
96-
* @param Cache $cache
97-
* @param StaticContent $staticContent
9896
* @return void
9997
*/
10098
public function __inject(
10199
FixtureFactory $fixtureFactory,
102-
SystemConfigEdit $configurationAdminPage,
103-
Cache $cache,
104-
StaticContent $staticContent
100+
SystemConfigEdit $configurationAdminPage
105101
) {
106102
$this->fixtureFactory = $fixtureFactory;
107103
$this->configurationAdminPage = $configurationAdminPage;
108-
$this->cache = $cache;
109-
$this->staticContent = $staticContent;
110104
}
111105

112106
/**
@@ -138,7 +132,14 @@ public function test($configData)
138132
$this->configurationAdminPage->getPageActions()->save();
139133
$_ENV['app_backend_url'] = str_replace('http', 'https', $_ENV['app_backend_url']);
140134

135+
$this->configurationAdminPage = $this->objectManager->create(
136+
\Magento\Backend\Test\Page\Adminhtml\SystemConfigEdit::class
137+
);
138+
139+
$this->cache = $this->objectManager->create(\Magento\Mtf\Util\Command\Cli\Cache::class);
141140
$this->cache->flush(['config', 'full_page']);
141+
142+
$this->staticContent = $this->objectManager->create(\Magento\Mtf\Util\Command\Cli\StaticContent::class);
142143
$this->staticContent->deploy();
143144
}
144145

0 commit comments

Comments
 (0)