7
7
8
8
namespace Magento \GraphQl \Store ;
9
9
10
- use Magento \Framework \App \Config \ScopeConfigInterface ;
11
10
use Magento \Framework \ObjectManagerInterface ;
12
11
use Magento \Store \Api \Data \StoreConfigInterface ;
13
12
use Magento \Store \Api \StoreConfigManagerInterface ;
14
13
use Magento \Store \Model \ResourceModel \Store as StoreResource ;
15
- use Magento \Store \Model \ScopeInterface ;
16
14
use Magento \Store \Model \Store ;
17
15
use Magento \TestFramework \Helper \Bootstrap ;
18
16
use Magento \TestFramework \TestCase \GraphQlAbstract ;
@@ -177,8 +175,6 @@ private function validateStoreConfig(StoreConfigInterface $storeConfig, array $r
177
175
/** @var Store $store */
178
176
$ store = $ this ->objectManager ->get (Store::class);
179
177
$ this ->storeResource ->load ($ store , $ storeConfig ->getCode (), 'code ' );
180
- /* @var $scopeConfig ScopeConfigInterface */
181
- $ scopeConfig = $ this ->objectManager ->get (ScopeConfigInterface::class);
182
178
$ this ->assertEquals ($ storeConfig ->getId (), $ responseConfig ['id ' ]);
183
179
$ this ->assertEquals ($ storeConfig ->getCode (), $ responseConfig ['code ' ]);
184
180
$ this ->assertEquals ($ store ->getName (), $ responseConfig ['store_name ' ]);
@@ -204,28 +200,12 @@ private function validateStoreConfig(StoreConfigInterface $storeConfig, array $r
204
200
);
205
201
$ this ->assertEquals ($ storeConfig ->getTimezone (), $ responseConfig ['timezone ' ]);
206
202
$ this ->assertEquals ($ storeConfig ->getWeightUnit (), $ responseConfig ['weight_unit ' ]);
207
- $ this ->assertEquals ($ storeConfig ->getBaseUrl (), $ responseConfig ['base_url ' ], 'base_url ' );
208
- $ this ->assertEquals (
209
- $ scopeConfig ->getValue (
210
- 'web/unsecure/base_link_url ' ,
211
- ScopeInterface::SCOPE_STORE ,
212
- $ storeConfig ->getId ()
213
- ),
214
- $ responseConfig ['base_link_url ' ],
215
- 'base_link_url '
216
- );
203
+ $ this ->assertEquals ($ storeConfig ->getBaseUrl (), $ responseConfig ['base_url ' ]);
204
+ $ this ->assertEquals ($ storeConfig ->getBaseLinkUrl (), $ responseConfig ['base_link_url ' ]);
217
205
$ this ->assertEquals ($ storeConfig ->getBaseStaticUrl (), $ responseConfig ['base_static_url ' ]);
218
206
$ this ->assertEquals ($ storeConfig ->getBaseMediaUrl (), $ responseConfig ['base_media_url ' ]);
219
- $ this ->assertEquals ($ storeConfig ->getSecureBaseUrl (), $ responseConfig ['secure_base_url ' ], 'secure_base_url ' );
220
- $ this ->assertEquals (
221
- $ scopeConfig ->getValue (
222
- 'web/secure/base_link_url ' ,
223
- ScopeInterface::SCOPE_STORE ,
224
- $ storeConfig ->getId ()
225
- ),
226
- $ responseConfig ['secure_base_link_url ' ],
227
- 'secure_base_link_url '
228
- );
207
+ $ this ->assertEquals ($ storeConfig ->getSecureBaseUrl (), $ responseConfig ['secure_base_url ' ]);
208
+ $ this ->assertEquals ($ storeConfig ->getSecureBaseLinkUrl (), $ responseConfig ['secure_base_link_url ' ]);
229
209
$ this ->assertEquals ($ storeConfig ->getSecureBaseStaticUrl (), $ responseConfig ['secure_base_static_url ' ]);
230
210
$ this ->assertEquals ($ storeConfig ->getSecureBaseMediaUrl (), $ responseConfig ['secure_base_media_url ' ]);
231
211
$ this ->assertEquals ($ store ->isUseStoreInUrl (), $ responseConfig ['use_store_in_url ' ]);
0 commit comments