public function testGetLang() { $valueLang = 'test-value_lang'; $serviceLocator = $this->getServiceManager(); $value = $this->getMock('Omeka\\Entity\\Value'); $value->expects($this->once())->method('getLang')->will($this->returnValue($valueLang)); $valueRep = new ValueRepresentation($value, $serviceLocator); $this->assertEquals($valueLang, $valueRep->lang()); }