Sylius\Behat\Page\Admin\Customer\ShowPageInterface::deleteAccount PHP Method

deleteAccount() public method

Deletes the user on whose show page we are currently on.
public deleteAccount ( )
    public function deleteAccount();

Usage Example

Example #1
0
 /**
  * @Then I should not be able to delete it again
  */
 public function iShouldNotBeAbleToDeleteCustomerAgain()
 {
     $customer = $this->sharedStorage->get('customer');
     $this->customerShowPage->open(['id' => $customer->getId()]);
     try {
         $this->customerShowPage->deleteAccount();
     } catch (ElementNotFoundException $exception) {
         return;
     }
     throw new \DomainException('Delete account should throw an exception!');
 }
All Usage Examples Of Sylius\Behat\Page\Admin\Customer\ShowPageInterface::deleteAccount