Skip to content

Commit e0e7873

Browse files
author
Vitaliy Boyko
committed
graphQl-309: fixed request type in tests
1 parent 632efdb commit e0e7873

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetOfflinePaymentMethodOnCartTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testSetPurchaseOrderPaymentMethodOnCartWithSimpleProduct()
7171
}
7272
}
7373
QUERY;
74-
$response = $this->graphQlQuery($query, [], '', $this->getHeaderMap());
74+
$response = $this->graphQlMutation($query, [], '', $this->getHeaderMap());
7575

7676
self::assertArrayHasKey('setPaymentMethodOnCart', $response);
7777
self::assertArrayHasKey('cart', $response['setPaymentMethodOnCart']);
@@ -112,7 +112,7 @@ public function testSetPurchaseOrderPaymentMethodOnCartWithoutPurchaseOrderNumbe
112112
}
113113
}
114114
QUERY;
115-
$this->graphQlQuery($query, [], '', $this->getHeaderMap());
115+
$this->graphQlMutation($query, [], '', $this->getHeaderMap());
116116
}
117117

118118
/**
@@ -149,7 +149,7 @@ public function testSetDisabledPurchaseOrderPaymentMethodOnCart()
149149
}
150150
}
151151
QUERY;
152-
$this->graphQlQuery($query, [], '', $this->getHeaderMap());
152+
$this->graphQlMutation($query, [], '', $this->getHeaderMap());
153153
}
154154

155155
/**

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetOfflinePaymentMethodOnCartTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testSetPurchaseOrderPaymentMethodOnCartWithSimpleProduct()
6363
}
6464
}
6565
QUERY;
66-
$response = $this->graphQlQuery($query);
66+
$response = $this->graphQlMutation($query);
6767

6868
self::assertArrayHasKey('setPaymentMethodOnCart', $response);
6969
self::assertArrayHasKey('cart', $response['setPaymentMethodOnCart']);
@@ -103,7 +103,7 @@ public function testSetPurchaseOrderPaymentMethodOnCartWithoutPurchaseOrderNumbe
103103
}
104104
}
105105
QUERY;
106-
$this->graphQlQuery($query);
106+
$this->graphQlMutation($query);
107107
}
108108

109109
/**
@@ -139,6 +139,6 @@ public function testSetDisabledPurchaseOrderPaymentMethodOnCart()
139139
}
140140
}
141141
QUERY;
142-
$this->graphQlQuery($query);
142+
$this->graphQlMutation($query);
143143
}
144144
}

0 commit comments

Comments
 (0)