mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02: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
|
Then the user account should be deleted
|
||||||
But the customer with this email should still exist
|
But the customer with this email should still exist
|
||||||
|
|
||||||
@ui @api
|
@api @ui
|
||||||
Scenario: A customer with no user cannot be deleted
|
Scenario: A customer with no user cannot be deleted
|
||||||
Given the account of "theodore@example.com" was deleted
|
Given the account of "theodore@example.com" was deleted
|
||||||
Then I should not be able to delete it again
|
Then I should not be able to delete it again
|
||||||
|
|
|
||||||
|
|
@ -588,14 +588,13 @@ final class ManagingCustomersContext implements Context
|
||||||
*/
|
*/
|
||||||
public function customerShouldStillExist(): void
|
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(
|
Assert::same($this->client->getLastResponse()->getStatusCode(), 200);
|
||||||
$this->responseChecker->getValue($this->client->getLastResponse(), 'email'),
|
Assert::same($this->responseChecker->getValue($this->client->getLastResponse(), 'email'), $customer->getEmail());
|
||||||
$deletedUser->getCustomer()->getEmail(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue