public function testGetCustomerException()
 {
     $this->currentCustomer->expects($this->once())->method('getCustomer')->will($this->throwException(new NoSuchEntityException(__(NoSuchEntityException::MESSAGE_SINGLE_FIELD, ['fieldName' => 'customerId', 'fieldValue' => 1]))));
     $this->assertNull($this->_block->getCustomer());
 }
Exemple #2
0
 public function testGetCustomerException()
 {
     $this->currentCustomer->expects($this->once())->method('getCustomer')->will($this->throwException(new NoSuchEntityException(__('No such entity with %fieldName = %fieldValue', ['fieldName' => 'customerId', 'fieldValue' => 1]))));
     $this->assertNull($this->_block->getCustomer());
 }