TYPO3  7.6
Public Member Functions | List of all members
LikeWildcardTest Class Reference
Inheritance diagram for LikeWildcardTest:

Public Member Functions

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

Detailed Description

This class contains unit tests for the LikeQueryUtility

Definition at line 21 of file LikeWildcardTest.php.

Member Function Documentation

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.

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 LikeWildcard\BOTH, LikeWildcard\LEFT, LikeWildcard\NONE, and LikeWildcard\RIGHT.