@@ -137,6 +137,7 @@ public function testGetFrontendConfig()
137137 $ expected = [
138138 'merchantId ' => $ expectedConfigParam ,
139139 'storeName ' => $ expectedConfigParam ,
140+ 'googlePayMerchantId ' => $ expectedConfigParam ,
140141 'operationMode ' => $ expectedConfigParam ,
141142 ];
142143
@@ -148,6 +149,7 @@ public function testGetFrontendConfigNoStoreConfig()
148149 {
149150 $ expectedConfigParam = "testValue " ;
150151 $ expectedStoreName = "storeFrontendName " ;
152+ $ expectedGooglePayMerchantId = "testValue " ;
151153
152154 $ this ->quote ->method ('getStore ' )->willReturn ($ this ->store );
153155 $ this ->store ->method ('getFrontendName ' )->willReturn ($ expectedStoreName );
@@ -157,13 +159,15 @@ public function testGetFrontendConfigNoStoreConfig()
157159 ['mid ' , PayoneConfig::METHOD_GOOGLE_PAY , 'payone_payment ' , 'test ' , $ expectedConfigParam ],
158160 ['mid ' , 'global ' , 'payone_general ' , null , $ expectedConfigParam ],
159161 ['store_name ' , PayoneConfig::METHOD_GOOGLE_PAY , 'payment ' , 'test ' , null ],
162+ ['google_pay_merchant_id ' , PayoneConfig::METHOD_GOOGLE_PAY , 'payment ' , null , $ expectedGooglePayMerchantId ],
160163 ['mode ' , PayoneConfig::METHOD_GOOGLE_PAY , 'payone_payment ' , 'test ' , $ expectedConfigParam ],
161164 ]
162165 );
163166
164167 $ expected = [
165168 'merchantId ' => $ expectedConfigParam ,
166169 'storeName ' => $ expectedStoreName ,
170+ 'googlePayMerchantId ' => $ expectedGooglePayMerchantId ,
167171 'operationMode ' => $ expectedConfigParam ,
168172 ];
169173
@@ -174,6 +178,7 @@ public function testGetFrontendConfigNoStoreConfig()
174178 public function testGetFrontendConfigStoreDoubleEmpty ()
175179 {
176180 $ expectedConfigParam = "testValue " ;
181+ $ expectedGooglePayMerchantId = "testValue " ;
177182
178183 $ this ->quote ->method ('getStore ' )->willReturn (null );
179184
@@ -182,13 +187,15 @@ public function testGetFrontendConfigStoreDoubleEmpty()
182187 ['mid ' , PayoneConfig::METHOD_GOOGLE_PAY , 'payone_payment ' , 'test ' , $ expectedConfigParam ],
183188 ['mid ' , 'global ' , 'payone_general ' , null , $ expectedConfigParam ],
184189 ['store_name ' , PayoneConfig::METHOD_GOOGLE_PAY , 'payment ' , 'test ' , null ],
190+ ['google_pay_merchant_id ' , PayoneConfig::METHOD_GOOGLE_PAY , 'payment ' , null , $ expectedGooglePayMerchantId ],
185191 ['mode ' , PayoneConfig::METHOD_GOOGLE_PAY , 'payone_payment ' , 'test ' , $ expectedConfigParam ],
186192 ]
187193 );
188194
189195 $ expected = [
190196 'merchantId ' => $ expectedConfigParam ,
191197 'storeName ' => 'Online Store ' ,
198+ 'googlePayMerchantId ' => $ expectedGooglePayMerchantId ,
192199 'operationMode ' => $ expectedConfigParam ,
193200 ];
194201
0 commit comments