77
88namespace Magento \GraphQl \Store ;
99
10- use Magento \Framework \App \Config \ScopeConfigInterface ;
1110use Magento \Framework \ObjectManagerInterface ;
1211use Magento \Store \Api \Data \StoreConfigInterface ;
1312use Magento \Store \Api \StoreConfigManagerInterface ;
1413use Magento \Store \Model \ResourceModel \Store as StoreResource ;
15- use Magento \Store \Model \ScopeInterface ;
1614use Magento \Store \Model \Store ;
1715use Magento \TestFramework \Helper \Bootstrap ;
1816use Magento \TestFramework \TestCase \GraphQlAbstract ;
@@ -177,8 +175,6 @@ private function validateStoreConfig(StoreConfigInterface $storeConfig, array $r
177175 /** @var Store $store */
178176 $ store = $ this ->objectManager ->get (Store::class);
179177 $ this ->storeResource ->load ($ store , $ storeConfig ->getCode (), 'code ' );
180- /* @var $scopeConfig ScopeConfigInterface */
181- $ scopeConfig = $ this ->objectManager ->get (ScopeConfigInterface::class);
182178 $ this ->assertEquals ($ storeConfig ->getId (), $ responseConfig ['id ' ]);
183179 $ this ->assertEquals ($ storeConfig ->getCode (), $ responseConfig ['code ' ]);
184180 $ this ->assertEquals ($ store ->getName (), $ responseConfig ['store_name ' ]);
@@ -204,28 +200,12 @@ private function validateStoreConfig(StoreConfigInterface $storeConfig, array $r
204200 );
205201 $ this ->assertEquals ($ storeConfig ->getTimezone (), $ responseConfig ['timezone ' ]);
206202 $ 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 ' ]);
217205 $ this ->assertEquals ($ storeConfig ->getBaseStaticUrl (), $ responseConfig ['base_static_url ' ]);
218206 $ 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 ' ]);
229209 $ this ->assertEquals ($ storeConfig ->getSecureBaseStaticUrl (), $ responseConfig ['secure_base_static_url ' ]);
230210 $ this ->assertEquals ($ storeConfig ->getSecureBaseMediaUrl (), $ responseConfig ['secure_base_media_url ' ]);
231211 $ this ->assertEquals ($ store ->isUseStoreInUrl (), $ responseConfig ['use_store_in_url ' ]);
0 commit comments