Revert "[FEATURE] Support feature toggle in expression language"
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Configuration / TypoScript / ConditionMatching / AbstractConditionMatcherTest.php
index 3828e5e..358acb0 100644 (file)
@@ -170,47 +170,6 @@ class AbstractConditionMatcherTest extends UnitTestCase
         );
     }
 
-    /**
-     * @test
-     */
-    public function checkConditionMatcherForFeatureFunction(): void
-    {
-        $featureName = 'test.testFeature';
-        $GLOBALS['TYPO3_CONF_VARS']['SYS']['features'][$featureName] = true;
-        $this->assertTrue(
-            $this->evaluateExpressionMethod->invokeArgs($this->conditionMatcher, ['feature("' . $featureName . '")'])
-        );
-        $this->assertTrue(
-            $this->evaluateExpressionMethod->invokeArgs($this->conditionMatcher, ['feature("' . $featureName . '") == true'])
-        );
-        $this->assertTrue(
-            $this->evaluateExpressionMethod->invokeArgs($this->conditionMatcher, ['feature("' . $featureName . '") === true'])
-        );
-        $this->assertFalse(
-            $this->evaluateExpressionMethod->invokeArgs($this->conditionMatcher, ['feature("' . $featureName . '") == false'])
-        );
-        $this->assertFalse(
-            $this->evaluateExpressionMethod->invokeArgs($this->conditionMatcher, ['feature("' . $featureName . '") === false'])
-        );
-
-        $GLOBALS['TYPO3_CONF_VARS']['SYS']['features'][$featureName] = false;
-        $this->assertFalse(
-            $this->evaluateExpressionMethod->invokeArgs($this->conditionMatcher, ['feature("' . $featureName . '")'])
-        );
-        $this->assertFalse(
-            $this->evaluateExpressionMethod->invokeArgs($this->conditionMatcher, ['feature("' . $featureName . '") == true'])
-        );
-        $this->assertFalse(
-            $this->evaluateExpressionMethod->invokeArgs($this->conditionMatcher, ['feature("' . $featureName . '") === true'])
-        );
-        $this->assertTrue(
-            $this->evaluateExpressionMethod->invokeArgs($this->conditionMatcher, ['feature("' . $featureName . '") == false'])
-        );
-        $this->assertTrue(
-            $this->evaluateExpressionMethod->invokeArgs($this->conditionMatcher, ['feature("' . $featureName . '") === false'])
-        );
-    }
-
     /**
      * @return array
      */