TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Tests\Unit\Form\Element\ElementConditionMatcherTest Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tests\Unit\Form\Element\ElementConditionMatcherTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 conditionStringDataProvider ()
 
 matchConditionStrings ($condition, array $record, $flexformValueKey, $expectedResult)
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

 $fixture
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Test case

Definition at line 20 of file ElementConditionMatcherTest.php.

Member Function Documentation

◆ conditionStringDataProvider()

TYPO3\CMS\Backend\Tests\Unit\Form\Element\ElementConditionMatcherTest::conditionStringDataProvider ( )

Returns data sets for the test matchConditionStrings Each dataset is an array with the following elements:

  • the condition string
  • the current record
  • the current flexform value key
  • the expected result
Returns
array

Definition at line 44 of file ElementConditionMatcherTest.php.

◆ matchConditionStrings()

TYPO3\CMS\Backend\Tests\Unit\Form\Element\ElementConditionMatcherTest::matchConditionStrings (   $condition,
array  $record,
  $flexformValueKey,
  $expectedResult 
)
Parameters
string$condition
array$record
string$flexformValueKey
string$expectedResultconditionStringDataProvider
Test:

Definition at line 333 of file ElementConditionMatcherTest.php.

References $GLOBALS.

◆ setUp()

TYPO3\CMS\Backend\Tests\Unit\Form\Element\ElementConditionMatcherTest::setUp ( )
protected

Sets up this test case.

Definition at line 30 of file ElementConditionMatcherTest.php.

Member Data Documentation

◆ $fixture

TYPO3\CMS\Backend\Tests\Unit\Form\Element\ElementConditionMatcherTest::$fixture
protected

Definition at line 25 of file ElementConditionMatcherTest.php.