예제 #1
0
 /**
  * @expectedException \Magento\Framework\Exception\NoSuchEntityException
  * @expectedExceptionMessage No such entity with email
  */
 public function testGetCustomerModelByEmailException()
 {
     $customerId = 0;
     $websiteId = 1;
     $customerEmail = '*****@*****.**';
     $this->prepareGetCustomerModelByEmail($websiteId, $customerEmail, $customerId);
     $this->storeManagerMock->expects($this->never())->method('getDefaultStoreView');
     $converter = new Converter($this->customerBuilderMock, $this->customerFactoryMock, $this->storeManagerMock);
     $this->assertInstanceOf('Magento\\Customer\\Model\\Customer', $converter->getCustomerModelByEmail('*****@*****.**', $websiteId));
 }