public function testGetStoreLabelWithException() { $this->customerMetadata->expects($this->any())->method('getAttributeMetadata')->will($this->throwException(new NoSuchEntityException(NoSuchEntityException::MESSAGE_SINGLE_FIELD, ['fieldName' => 'field', 'fieldValue' => 'value']))); $this->assertSame('', $this->_block->getStoreLabel('attributeCode')); }
public function testGetStoreLabelWithException() { $this->customerMetadata->expects($this->any())->method('getAttributeMetadata')->will($this->throwException(new NoSuchEntityException(__('No such entity with %fieldName = %fieldValue', ['fieldName' => 'field', 'fieldValue' => 'value'])))); $this->assertSame('', (string) $this->_block->getStoreLabel('attributeCode')); }