Fixed bug #14500: Bug: Unit test failures in t3lib_matchCondition_backend_testcase...
authorSteffen Kamper <info@sk-typo3.de>
Fri, 17 Dec 2010 19:04:43 +0000 (19:04 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Fri, 17 Dec 2010 19:04:43 +0000 (19:04 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9832 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
tests/t3lib/matchcondition/t3lib_matchcondition_backendTest.php

index 9fb10ea..43106e3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
 
 2010-12-17  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #14500: Bug: Unit test failures in t3lib_matchCondition_backend_testcase (Thanks to Oliver Klee)
        * Fixed bug #16738: Add ExtDirect Stateprovider for ExtJs States
        * Fixed bug #16706: Use ExtJS for collapseable sections like in reports module
        * Fixed bug #15686: Call the list module through the dispatcher instead directly (Thanks to Helmut Hummel)
index 384d919..4d97f14 100644 (file)
@@ -111,7 +111,7 @@ class t3lib_matchCondition_backendTest extends tx_phpunit_testcase {
         * @test
         */
        public function simulateDisabledMatchAllConditionsFailsOnFaultyExpression() {
-               $this->matchCondition->matchAll = false;
+               $this->matchCondition->matchAll = FALSE;
                $this->assertFalse($this->matchCondition->match('[nullCondition = This expression would return false in general]'));
        }
 
@@ -838,7 +838,6 @@ class t3lib_matchCondition_backendTest extends tx_phpunit_testcase {
                if ($table === $this->testTableName) {
                        return array(
                                'scope' => $this->testTableName,
-                               'processed' => false,
                                'data' => array(
                                        'pid' => 999,
                                ),
@@ -855,13 +854,12 @@ class t3lib_matchCondition_backendTest extends tx_phpunit_testcase {
         * @param       mixed           $resource
         * @return      mixed
         */
-       public function determinePageIdByRecordDatabaseFetchCallback(&$resource) {
-               if (is_array($resource) && !$resource['processed'] && $resource['scope'] === $this->testTableName) {
-                       $resource['processed'] = true;
+       public function determinePageIdByRecordDatabaseFetchCallback($resource) {
+               if (is_array($resource) && ($resource['scope'] === $this->testTableName)) {
                        return $resource['data'];
                } else {
                        return FALSE;
                }
        }
 }
-?>
\ No newline at end of file
+?>