You are here

public function ConfigEntityQueryTest::testCaseSensitivity in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php \Drupal\system\Tests\Entity\ConfigEntityQueryTest::testCaseSensitivity()

Tests case sensitivity.

File

core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php, line 584
Contains \Drupal\system\Tests\Entity\ConfigEntityQueryTest.

Class

ConfigEntityQueryTest
Tests Config Entity Query functionality.

Namespace

Drupal\system\Tests\Entity

Code

public function testCaseSensitivity() {

  // Filter by label with a known containing case-sensitive word.
  $this->queryResults = $this->factory
    ->get('config_query_test')
    ->condition('label', 'TEST', 'CONTAINS')
    ->execute();
  $this
    ->assertResults(array(
    '3',
    '4',
    '5',
  ));
  $this->queryResults = $this->factory
    ->get('config_query_test')
    ->condition('label', 'test', 'CONTAINS')
    ->execute();
  $this
    ->assertResults(array(
    '3',
    '4',
    '5',
  ));
}