File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
app/code/Magento/StoreGraphQl/etc
dev/tests/api-functional/testsuite/Magento/GraphQl/Store Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 2323 </argument >
2424 </arguments >
2525 </type >
26+ <type name =" Magento\StoreGraphQl\Model\Resolver\Store\StoreConfigDataProvider" >
27+ <arguments >
28+ <argument name =" extendedConfigData" xsi : type =" array" >
29+ <item name =" store_name" xsi : type =" string" >store/information/name</item >
30+ </argument >
31+ </arguments >
32+ </type >
2633</config >
Original file line number Diff line number Diff line change @@ -30,4 +30,5 @@ type StoreConfig @doc(description: "The type contains information about a store
3030 secure_base_link_url : String @doc (description : "Secure base link URL for the store" )
3131 secure_base_static_url : String @doc (description : "Secure base static URL for the store" )
3232 secure_base_media_url : String @doc (description : "Secure base media URL for the store" )
33+ store_name : String @doc (description : "Name of the store" )
3334}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ protected function setUp()
3030
3131 /**
3232 * @magentoApiDataFixture Magento/Store/_files/store.php
33+ * @magentoConfigFixture default_store store/information/name Test Store
3334 */
3435 public function testGetStoreConfig ()
3536 {
@@ -62,7 +63,8 @@ public function testGetStoreConfig()
6263 secure_base_url,
6364 secure_base_link_url,
6465 secure_base_static_url,
65- secure_base_media_url
66+ secure_base_media_url,
67+ store_name
6668 }
6769}
6870QUERY ;
@@ -89,5 +91,6 @@ public function testGetStoreConfig()
8991 $ response ['storeConfig ' ]['secure_base_static_url ' ]
9092 );
9193 $ this ->assertEquals ($ storeConfig ->getSecureBaseMediaUrl (), $ response ['storeConfig ' ]['secure_base_media_url ' ]);
94+ $ this ->assertEquals ('Test Store ' , $ response ['storeConfig ' ]['store_name ' ]);
9295 }
9396}
You can’t perform that action at this time.
0 commit comments