public function testloadLanguages() { $SugarApplication = new SugarApplication(); $SugarApplication->controller = new SugarController(); try { $SugarApplication->loadLanguages(); //check that method call got the current_language global variable set. $this->assertTrue(isset($GLOBALS['current_language'])); //check that method call got the app_strings global variable set. $this->assertTrue(is_array($GLOBALS['app_strings']) && count($GLOBALS['app_strings']) > 0); //check that method call got the app_list_strings global variable set. $this->assertTrue(is_array($GLOBALS['app_list_strings']) && count($GLOBALS['app_list_strings']) > 0); //check that method call got the mod_strings global variable set. $this->assertTrue(is_array($GLOBALS['mod_strings']) && count($GLOBALS['mod_strings']) > 0); } catch (Exception $e) { $this->fail(); } }