コード例 #1
0
 public function testIsEmailAvailableNonExistentEmail()
 {
     $this->assertTrue($this->_customerAccountService->isEmailAvailable('*****@*****.**', 1));
 }
コード例 #2
0
ファイル: Onepage.php プロジェクト: Atlis/docker-magento2
 /**
  * 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);
 }