Follow-up to test #12153: Fixed bug in language condition tests
authorOliver Hader <oliver.hader@typo3.org>
Mon, 19 Oct 2009 20:33:14 +0000 (20:33 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 19 Oct 2009 20:33:14 +0000 (20:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6169 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
tests/t3lib/t3lib_matchcondition_testcase.php

index 4d8afd5..8d6a4fe 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-19  Oliver Hader  <oliver@typo3.org>
+
+       * Follow-up to test #12153: Fixed bug in language condition tests
+
 2009-10-19  Rupert Germann  <rupi@gmx.li>
 
        * Added Feature #12138: Use flashmessages to display messages from tcemain
index fd16c65..7fdb45d 100644 (file)
@@ -154,7 +154,7 @@ class t3lib_matchCondition_testcase extends tx_phpunit_testcase {
         * @test
         */
        public function languageConditionMatchesSingleLanguageExpression() {
-               $_SERVER[] = 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3';
+               $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3';
                $this->assertTrue($this->matchCondition->match('[language = *de*]'));
                $this->assertTrue($this->matchCondition->match('[language = *de-de*]'));
        }
@@ -164,7 +164,7 @@ class t3lib_matchCondition_testcase extends tx_phpunit_testcase {
         * @test
         */
        public function languageConditionMatchesMultipleLanguagesExpression() {
-               $_SERVER[] = 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3';
+               $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3';
                $this->assertTrue($this->matchCondition->match('[language = *en*,*de*]'));
                $this->assertTrue($this->matchCondition->match('[language = *en-us*,*de-de*]'));
        }
@@ -176,7 +176,7 @@ class t3lib_matchCondition_testcase extends tx_phpunit_testcase {
        public function languageConditionMatchesCompleteLanguagesExpression() {
                $this->markTestSkipped('This comparison seems to be incomplete in t3lib_matchCondition.');
 
-               $_SERVER[] = 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3';
+               $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3';
                $this->assertTrue($this->matchCondition->match('[language = de-de,de;q=0.8]'));
        }