function ConditionTest::providerSimpleCondition
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Database/ConditionTest.php \Drupal\Tests\Core\Database\ConditionTest::providerSimpleCondition()
- 8.9.x core/tests/Drupal/Tests/Core/Database/ConditionTest.php \Drupal\Tests\Core\Database\ConditionTest::providerSimpleCondition()
- 11.x core/tests/Drupal/Tests/Core/Database/ConditionTest.php \Drupal\Tests\Core\Database\ConditionTest::providerSimpleCondition()
Provides a list of known operations and the expected output.
Return value
array
- Expected result for the string version of the condition.
- The field name to input in the condition.
File
-
core/
tests/ Drupal/ Tests/ Core/ Database/ ConditionTest.php, line 30
Class
- ConditionTest
- @coversDefaultClass \Drupal\Core\Database\Query\Condition
Namespace
Drupal\Tests\Core\DatabaseCode
public static function providerSimpleCondition() {
return [
[
'name = :db_condition_placeholder_0',
'name',
],
[
'name123 = :db_condition_placeholder_0',
'name-123',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.