@@ -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
102102mutation{
0 commit comments