public function testIsEmailAvailableNonExistentEmail() { $this->assertTrue($this->_customerAccountService->isEmailAvailable('*****@*****.**', 1)); }
/** * 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); }