[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/test/helpers/lifetypetestcase.class.php" ); 4 5 /** 6 * \ingroup Test 7 * 8 * Test case for the SummaryAction class, such as verifying that setting the 9 * language based on the "lang" parameter in summary.php works as expected 10 */ 11 class SummaryAction_Test extends LifeTypeTestCase 12 { 13 /** 14 * Mantis case 985: http://bugs.lifetype.net/view.php?id=985 15 * Verifies that the "lang" parameter works also in the front page. It checks 16 * this by requesting summary.php using the es_ES locale and checking that 17 * the returned content contains one particular string (that is part of the 18 * Spanish locale) 19 */ 20 function testLanguageChangeViaLangParameterInRequest() 21 { 22 lt_include( PLOG_CLASS_PATH."class/config/config.class.php" ); 23 $config =& Config::getConfig(); 24 25 $url = $config->getValue( "base_url" )."/summary.php"; 26 27 // first set it to Spanish 28 $this->assertHTTPResponseContains( $url."?lang=es_ES", "Bitácoras nuevas", "Unable to change the locale in summary.php via the 'lang' parameter!" ); 29 // and then back to english again 30 $this->assertHTTPResponseContains( $url."?lang=en_UK", "Newest Blogs", "Unable to change the locale in summary.php via the 'lang' parameter!" ); 31 } 32 } 33 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |