[pLog-svn] r3752 - in plog/trunk/class/test/tests: . summary
summary/action
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu Jul 20 05:42:50 GMT 2006
Author: oscar
Date: 2006-07-20 05:42:49 +0000 (Thu, 20 Jul 2006)
New Revision: 3752
Added:
plog/trunk/class/test/tests/summary/
plog/trunk/class/test/tests/summary/action/
plog/trunk/class/test/tests/summary/action/summaryaction_test.class.php
Log:
test case for mantis issue 985 (http://bugs.lifetype.net/view.php?id=985)
Added: plog/trunk/class/test/tests/summary/action/summaryaction_test.class.php
===================================================================
--- plog/trunk/class/test/tests/summary/action/summaryaction_test.class.php 2006-07-20 04:36:26 UTC (rev 3751)
+++ plog/trunk/class/test/tests/summary/action/summaryaction_test.class.php 2006-07-20 05:42:49 UTC (rev 3752)
@@ -0,0 +1,30 @@
+<?php
+
+ include_once( PLOG_CLASS_PATH."class/test/helpers/lifetypetestcase.class.php" );
+
+ /**
+ * \ingroup Tests
+ *
+ * Test case for the SummaryAction class, such as verifying that setting the
+ * language based on the "lang" parameter in summary.php works as expected
+ */
+ class SummaryAction_Test extends LifeTypeTestCase
+ {
+ /**
+ * Mantis case 985: http://bugs.lifetype.net/view.php?id=985
+ * Verifies that the "lang" parameter works also in the front page. It checks
+ * this by requesting summary.php using the es_ES locale and checking that
+ * the returned content contains one particular string (that is part of the
+ * Spanish locale)
+ */
+ function testLanguageChangeViaLangParameterInRequest()
+ {
+ include_once( PLOG_CLASS_PATH."class/config/config.class.php" );
+ $config =& Config::getConfig();
+
+ $url = $config->getValue( "base_url" )."/summary.php?lang=es_ES";
+
+ $this->assertHTTPResponseContains( $url, "Bitácoras nuevas", "Unable to change the locale in summary.php via the 'lang' parameter!" );
+ }
+ }
+?>
\ No newline at end of file
More information about the pLog-svn
mailing list