Esempio n. 1
0
 public function testIsRequiredWithException()
 {
     $this->_attributeMetadata->expects($this->any())->method('getAttributeMetadata')->will($this->throwException(new NoSuchEntityException(NoSuchEntityException::MESSAGE_SINGLE_FIELD, ['fieldName' => 'field', 'fieldValue' => 'value'])));
     $this->assertSame(false, $this->_block->isRequired());
 }
Esempio n. 2
0
 public function testIsRequiredWithException()
 {
     $this->customerMetadata->expects($this->any())->method('getAttributeMetadata')->will($this->throwException(new NoSuchEntityException(__('No such entity with %fieldName = %fieldValue', ['fieldName' => 'field', 'fieldValue' => 'value']))));
     $this->assertSame(false, $this->block->isRequired());
 }