public function testIsEnabledWithException() { $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->isEnabled()); }
public function testIsEnabledWithException() { $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->isEnabled()); }