public function testIsEmailAvailableNonExistentEmail()
 {
     $this->assertTrue($this->_customerAccountService->isEmailAvailable('*****@*****.**', 1));
 }
Exemple #2
0
 /**
  * Check if customer email exists
  *
  * @param string $email
  * @param int $websiteId
  * @return false|\Magento\Customer\Model\Customer
  */
 protected function _customerEmailExists($email, $websiteId = null)
 {
     return !$this->_customerAccountService->isEmailAvailable($email, $websiteId);
 }