->
request( 'DELETE',
'/store-api/customer/wishlist/delete/' .
$productId );
$response =
json_decode((string) $this->browser->
getResponse()->
getContent(), true, 512, \JSON_THROW_ON_ERROR
);
static::
assertSame(200,
$this->browser->
getResponse()->
getStatusCode());
static::
assertTrue($response['success'
]);
static::
assertTrue($eventWasThrown);
$dispatcher->
removeListener(WishlistProductRemovedEvent::
class,
$listener);
} public function testDeleteProductShouldThrowCustomerWishlistNotActivatedException(): void
{ $productData =
$this->
createProduct($this->context
);
$this->systemConfigService->
set('core.cart.wishlistEnabled', false
);
$this->browser
->
request( 'DELETE',
'/store-api/customer/wishlist/delete/' .
$productData[0
] );