Skip to content

Commit c540724

Browse files
author
Dmytro Vilchynskyi
committed
MAGETWO-63197: ConfigureSecureUrlsTest is failing and next functional tests are also failing after it
- Re-init pages on fly so that updated protocol is used.
1 parent 1856c28 commit c540724

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
/**
@@ -135,7 +129,14 @@ public function test($configData)
135129
$this->configurationAdminPage->getPageActions()->save();
136130
$_ENV['app_backend_url'] = str_replace('http', 'https', $_ENV['app_backend_url']);
137131

132+
$this->configurationAdminPage = $this->objectManager->create(
133+
\Magento\Backend\Test\Page\Adminhtml\SystemConfigEdit::class
134+
);
135+
136+
$this->cache = $this->objectManager->create(\Magento\Mtf\Util\Command\Cli\Cache::class);
138137
$this->cache->flush(['config', 'full_page']);
138+
139+
$this->staticContent = $this->objectManager->create(\Magento\Mtf\Util\Command\Cli\StaticContent::class);
139140
$this->staticContent->deploy();
140141
}
141142

0 commit comments

Comments
 (0)