TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\IndexedSearch\Tests\Unit\Utility\LikeWildcardTest Class Reference
Inheritance diagram for TYPO3\CMS\IndexedSearch\Tests\Unit\Utility\LikeWildcardTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 getLikeQueryPart ($tableName, $fieldName, $likeValue, $wildcard, $expected)
 
 getLikeQueryPartDataProvider ()
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, $methods=[], array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=[], $mockClassName='', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

This class contains unit tests for the LikeQueryUtility

Definition at line 21 of file LikeWildcardTest.php.

Member Function Documentation

◆ getLikeQueryPart()

TYPO3\CMS\IndexedSearch\Tests\Unit\Utility\LikeWildcardTest::getLikeQueryPart (   $tableName,
  $fieldName,
  $likeValue,
  $wildcard,
  $expected 
)
Test:
Parameters
string$tableName
string$fieldName
string$likeValue
int$wildcard
string$expectedgetLikeQueryPartDataProvider

Definition at line 44 of file LikeWildcardTest.php.

References TYPO3\CMS\Core\Type\Enumeration\cast().

◆ getLikeQueryPartDataProvider()

TYPO3\CMS\IndexedSearch\Tests\Unit\Utility\LikeWildcardTest::getLikeQueryPartDataProvider ( )

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

  • the table name
  • the field name
  • the search value
  • the wildcard mode
  • the expected result
Returns
array

Definition at line 61 of file LikeWildcardTest.php.

References TYPO3\CMS\IndexedSearch\Utility\LikeWildcard\BOTH, TYPO3\CMS\IndexedSearch\Utility\LikeWildcard\LEFT, TYPO3\CMS\IndexedSearch\Utility\LikeWildcard\NONE, and TYPO3\CMS\IndexedSearch\Utility\LikeWildcard\RIGHT.