You are here

public function ConditionTest::providerSimpleCondition in Drupal 8

Same name and namespace in other branches
  1. 9 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 27

Class

ConditionTest
@coversDefaultClass \Drupal\Core\Database\Query\Condition

Namespace

Drupal\Tests\Core\Database

Code

public function providerSimpleCondition() {
  return [
    [
      'name = :db_condition_placeholder_0',
      'name',
    ],
    [
      'name123 = :db_condition_placeholder_0',
      'name-123',
    ],
  ];
}