[BUGFIX] TypoScript userFunc condition does not work with static methods
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Configuration / ConditionMatcherTest.php
index ef65e34..7398448 100644 (file)
@@ -122,5 +122,13 @@ class ConditionMatcherTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $this->assertTrue($this->conditionMatcher->match('[userFunc = user_testQuotes("1 \" 2") ]'));
        }
 
+       /**
+        * @test
+        * @return void
+        */
+       public function testUserFuncWithClassMethodCall() {
+               $this->assertTrue($this->conditionMatcher->match('[userFunc = ConditionMatcherUserFunctions::isTrue(1)]'));
+       }
+
 }