コード例 #1
0
 /**
  * @magentoAppArea adminhtml
  * @magentoDataFixture Magento/Customer/_files/customer.php
  * @magentoAppIsolation enabled
  */
 public function testDeleteCustomerByEmail()
 {
     // _files/customer.php sets the customer email to customer@example.com
     $this->_customerAccountService->deleteCustomerByEmail('*****@*****.**');
     //Verify if the customer is deleted
     $this->setExpectedException('Magento\\Framework\\Exception\\NoSuchEntityException', 'No such entity with email = customer@example.com');
     $this->_customerAccountService->getCustomerByEmail('*****@*****.**');
 }