Skip to content

Commit 2e285be

Browse files
author
Prabhu Ram
committed
PWA-1619: New accounts created through GQL are not provisioned a wishlist
- minor fix
1 parent 999b222 commit 2e285be

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/CustomerWishlistsTest.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,26 @@ public function testCustomerWishlist(): void
7777
*/
7878
public function testWishlistCreationScenario(): void
7979
{
80-
$customerEmail = 'customer@wishlist.com';
81-
$this->graphQlMutation(
82-
$this->getCreateCustomerQuery($customerEmail),
83-
[],
84-
''
85-
);
86-
$response = $this->graphQlQuery(
87-
$this->getQuery(),
88-
[],
89-
'',
90-
$this->getCustomerAuthHeaders($customerEmail, '123123^q')
91-
);
92-
$this->assertArrayHasKey('wishlists', $response['customer']);
93-
$wishlists = $response['customer']['wishlists'];
94-
$this->assertNotEmpty($wishlists);
95-
$wishlist = $wishlists[0];
96-
$this->assertEquals(0, $wishlist['items_count']);
97-
$sku = 'simple-1';
98-
$qty = 1;
9980
try {
81+
$customerEmail = 'customer@wishlist.com';
82+
$this->graphQlMutation(
83+
$this->getCreateCustomerQuery($customerEmail),
84+
[],
85+
''
86+
);
87+
$response = $this->graphQlQuery(
88+
$this->getQuery(),
89+
[],
90+
'',
91+
$this->getCustomerAuthHeaders($customerEmail, '123123^q')
92+
);
93+
$this->assertArrayHasKey('wishlists', $response['customer']);
94+
$wishlists = $response['customer']['wishlists'];
95+
$this->assertNotEmpty($wishlists);
96+
$wishlist = $wishlists[0];
97+
$this->assertEquals(0, $wishlist['items_count']);
98+
$sku = 'simple-1';
99+
$qty = 1;
100100
$addProductToWishlistQuery =
101101
<<<QUERY
102102
mutation{

0 commit comments

Comments
 (0)