Exemple #1
0
 public function testGetLanguageViewerHasLanguage()
 {
     $language = CM_Model_Language::create('Test language', 'foo', true);
     $viewer = CMTest_TH::createUser();
     $viewer->setLanguage($language);
     $environment = new CM_Frontend_Environment(null, $viewer);
     $render = new CM_Frontend_Render($environment);
     $this->assertNull($render->getLanguage());
     $this->assertEquals($language, $render->getLanguage(true));
 }