Exemplo n.º 1
0
 public function testGetAttributeMetadataWithoutAttributeMetadata()
 {
     $this->attributeMetadataDataProvider->expects($this->any())->method('getAttribute')->will($this->returnValue(false));
     try {
         $this->service->getAttributeMetadata('attributeId');
         $this->fail('Expected exception not thrown.');
     } catch (NoSuchEntityException $e) {
         $this->assertSame("No such entity with entityType = customer, attributeCode = attributeId", $e->getMessage());
     }
 }