Exemplo n.º 1
0
 /**
  * @test
  * @return void
  */
 public function testUserFuncWithClassMethodCall()
 {
     $this->assertTrue($this->conditionMatcher->match('[userFunc = ConditionMatcherUserFunctions::isTrue(1)]'));
 }
 /**
  * Tests whether determining a pageId works.
  *
  * @test
  */
 public function pageIdCanBeDeterminedWhileMovingARecordToAnotherPage()
 {
     $_GET['cmd']['pages'][121]['move'] = 999;
     $this->matchCondition->match('[globalVar = LIT:10 = 10]');
     $this->assertEquals(999, $this->matchCondition->getPageId());
 }
 /**
  * @test
  * @expectedException \TYPO3\CMS\Backend\Tests\Unit\Configuration\TypoScript\ConditionMatching\Fixtures\TestConditionException
  */
 public function matchCallsTestConditionAndHandsOverParameters()
 {
     $this->matchCondition->match('[TYPO3\\CMS\\Backend\\Tests\\Unit\\Configuration\\TypoScript\\ConditionMatching\\Fixtures\\TestCondition = 7, != 6]');
 }
Exemplo n.º 4
0
 /**
  * @test
  * @return void
  */
 public function testUserFuncWithQuotesInside()
 {
     $this->assertTrue($this->conditionMatcher->match('[userFunc = user_testQuotes("1 \\" 2") ]'));
 }