public function testGetAvailableLanguages() { $languages = array('fre-FR', 'eng-GB', 'esl-ES'); $this->translationHelper->expects($this->once())->method('getAvailableLanguages')->will($this->returnValue($languages)); $this->assertSame($languages, $this->helper->getAvailableLanguages()); }