@@ -93,20 +93,14 @@ class ConfigureSecureUrlsTest extends Injectable
93
93
*
94
94
* @param FixtureFactory $fixtureFactory
95
95
* @param SystemConfigEdit $configurationAdminPage
96
- * @param Cache $cache
97
- * @param StaticContent $staticContent
98
96
* @return void
99
97
*/
100
98
public function __inject (
101
99
FixtureFactory $ fixtureFactory ,
102
- SystemConfigEdit $ configurationAdminPage ,
103
- Cache $ cache ,
104
- StaticContent $ staticContent
100
+ SystemConfigEdit $ configurationAdminPage
105
101
) {
106
102
$ this ->fixtureFactory = $ fixtureFactory ;
107
103
$ this ->configurationAdminPage = $ configurationAdminPage ;
108
- $ this ->cache = $ cache ;
109
- $ this ->staticContent = $ staticContent ;
110
104
}
111
105
112
106
/**
@@ -138,7 +132,14 @@ public function test($configData)
138
132
$ this ->configurationAdminPage ->getPageActions ()->save ();
139
133
$ _ENV ['app_backend_url ' ] = str_replace ('http ' , 'https ' , $ _ENV ['app_backend_url ' ]);
140
134
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);
141
140
$ this ->cache ->flush (['config ' , 'full_page ' ]);
141
+
142
+ $ this ->staticContent = $ this ->objectManager ->create (\Magento \Mtf \Util \Command \Cli \StaticContent::class);
142
143
$ this ->staticContent ->deploy ();
143
144
}
144
145
0 commit comments