‪TYPO3CMS  9.5
TYPO3\CMS\IndexedSearch\Tests\Functional\Utility\LikeWildcardTest Class Reference
Inheritance diagram for TYPO3\CMS\IndexedSearch\Tests\Functional\Utility\LikeWildcardTest:

Public Member Functions

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

Detailed Description

This class contains unit tests for the LikeQueryUtility

Definition at line 26 of file LikeWildcardTest.php.

Member Function Documentation

◆ getLikeQueryPart()

TYPO3\CMS\IndexedSearch\Tests\Functional\Utility\LikeWildcardTest::getLikeQueryPart (   $tableName,
  $fieldName,
  $likeValue,
  $wildcard,
  $expected 
)
Test:
Parameters
string$tableName
string$fieldName
string$likeValue
int$wildcard
string$expected‪@dataProvider getLikeQueryPartDataProvider

Definition at line 37 of file LikeWildcardTest.php.

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

◆ getLikeQueryPartDataProvider()

array TYPO3\CMS\IndexedSearch\Tests\Functional\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.