mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
Fix failing scenario
This commit is contained in:
parent
5c728d2d27
commit
d691033530
2 changed files with 6 additions and 7 deletions
|
|
@ -15,7 +15,7 @@ Feature: Deleting the customer account
|
|||
Then the user account should be deleted
|
||||
But the customer with this email should still exist
|
||||
|
||||
@ui @api
|
||||
@api @ui
|
||||
Scenario: A customer with no user cannot be deleted
|
||||
Given the account of "theodore@example.com" was deleted
|
||||
Then I should not be able to delete it again
|
||||
|
|
|
|||
|
|
@ -588,14 +588,13 @@ final class ManagingCustomersContext implements Context
|
|||
*/
|
||||
public function customerShouldStillExist(): void
|
||||
{
|
||||
$deletedUser = $this->sharedStorage->get('deleted_user');
|
||||
/** @var CustomerInterface $customer */
|
||||
$customer = $this->sharedStorage->get('customer');
|
||||
|
||||
$this->client->show(Resources::CUSTOMERS, (string) $deletedUser->getCustomer()->getId());
|
||||
$this->client->show(Resources::CUSTOMERS, (string) $customer->getId());
|
||||
|
||||
Assert::same(
|
||||
$this->responseChecker->getValue($this->client->getLastResponse(), 'email'),
|
||||
$deletedUser->getCustomer()->getEmail(),
|
||||
);
|
||||
Assert::same($this->client->getLastResponse()->getStatusCode(), 200);
|
||||
Assert::same($this->responseChecker->getValue($this->client->getLastResponse(), 'email'), $customer->getEmail());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue