public function testSearchPropertyIdForNonRegisteredLabel()
 {
     $languageIndependentPropertyLabels = array();
     $instance = new PropertyLabelFinder($this->store, $languageIndependentPropertyLabels);
     $this->assertFalse($instance->searchPropertyIdByLabel('Bar'));
     $this->assertEquals('', $instance->findPropertyLabelById('_Foo'));
 }
 public function testFindPreferredPropertyLabelByLanguageCode()
 {
     $this->propertySpecificationLookup->expects($this->once())->method('getPreferredPropertyLabelBy')->with($this->equalTo('Foo'))->will($this->returnValue('ABC'));
     $instance = new PropertyLabelFinder($this->store);
     $this->assertEquals('ABC', $instance->findPreferredPropertyLabelByLanguageCode('Foo', 'fr'));
 }