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 23
23
</argument >
24
24
</arguments >
25
25
</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 >
26
33
</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
30
30
secure_base_link_url : String @doc (description : "Secure base link URL for the store" )
31
31
secure_base_static_url : String @doc (description : "Secure base static URL for the store" )
32
32
secure_base_media_url : String @doc (description : "Secure base media URL for the store" )
33
+ store_name : String @doc (description : "Name of the store" )
33
34
}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ protected function setUp()
30
30
31
31
/**
32
32
* @magentoApiDataFixture Magento/Store/_files/store.php
33
+ * @magentoConfigFixture default_store store/information/name Test Store
33
34
*/
34
35
public function testGetStoreConfig ()
35
36
{
@@ -62,7 +63,8 @@ public function testGetStoreConfig()
62
63
secure_base_url,
63
64
secure_base_link_url,
64
65
secure_base_static_url,
65
- secure_base_media_url
66
+ secure_base_media_url,
67
+ store_name
66
68
}
67
69
}
68
70
QUERY ;
@@ -89,5 +91,6 @@ public function testGetStoreConfig()
89
91
$ response ['storeConfig ' ]['secure_base_static_url ' ]
90
92
);
91
93
$ this ->assertEquals ($ storeConfig ->getSecureBaseMediaUrl (), $ response ['storeConfig ' ]['secure_base_media_url ' ]);
94
+ $ this ->assertEquals ('Test Store ' , $ response ['storeConfig ' ]['store_name ' ]);
92
95
}
93
96
}
You can’t perform that action at this time.
0 commit comments