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

Public Member Functions

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

Detailed Description

This class contains unit tests for the LikeQueryUtility

Definition at line 30 of file LikeWildcardTest.php.

Member Function Documentation

◆ getLikeQueryPart()

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

Definition at line 41 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 71 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.