Skip to content

Commit

Permalink
428 - Test coverage: GetAvailableShippingMethodsTest
Browse files Browse the repository at this point in the history
Fix 1) Magento\GraphQl\Quote\Customer\GetAvailableShippingMethodsTest::testGetAvailableShippingMethods
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
-    'amount' => 0
-    'base_amount' => 0
+    'amount' => 10
+    'base_amount' => 10
     'carrier_code' => 'flatrate'
     'carrier_title' => 'Flat Rate'
     'error_message' => ''
     'method_code' => 'flatrate'
     'method_title' => 'Fixed'
-    'price_incl_tax' => 0
-    'price_excl_tax' => 0
+    'price_incl_tax' => 10
+    'price_excl_tax' => 10
  • Loading branch information
atwixfirster committed Mar 15, 2019
1 parent 89a8621 commit d2a7142
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ public function testGetAvailableShippingMethods()
self::assertCount(1, $response['cart']['shipping_addresses'][0]['available_shipping_methods']);

$expectedAddressData = [
'amount' => 0,
'base_amount' => 0,
'amount' => 10,
'base_amount' => 10,
'carrier_code' => 'flatrate',
'carrier_title' => 'Flat Rate',
'error_message' => '',
'method_code' => 'flatrate',
'method_title' => 'Fixed',
'price_incl_tax' => 0,
'price_excl_tax' => 0,
'price_incl_tax' => 10,
'price_excl_tax' => 10,
];
self::assertEquals(
$expectedAddressData,
Expand Down

0 comments on commit d2a7142

Please sign in to comment.