Unverified Commit 45b3d06d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3101130 by Krzysztof Domański, DukeandGrace:...

Issue #3101130 by Krzysztof Domański, DukeandGrace: ConfigEntityQueryTest::testCaseSensitivity can randomly fail
parent d8670b96
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ protected function setUp() {
    // The tests match array.level1.level2.
    $array['level1']['level2'] = 1;
    $entity = ConfigQueryTest::create([
      'label' => $this->randomMachineName(),
      'label' => 'entity_1',
      'id' => '1',
      'number' => 31,
      'array' => $array,
@@ -73,7 +73,7 @@ protected function setUp() {

    $array['level1']['level2'] = 2;
    $entity = ConfigQueryTest::create([
      'label' => $this->randomMachineName(),
      'label' => 'entity_2',
      'id' => '2',
      'number' => 41,
      'array' => $array,
@@ -84,7 +84,7 @@ protected function setUp() {

    $array['level1']['level2'] = 1;
    $entity = ConfigQueryTest::create([
      'label' => 'test_prefix_' . $this->randomMachineName(),
      'label' => 'test_prefix_entity_3',
      'id' => '3',
      'number' => 59,
      'array' => $array,
@@ -95,7 +95,7 @@ protected function setUp() {

    $array['level1']['level2'] = 2;
    $entity = ConfigQueryTest::create([
      'label' => $this->randomMachineName() . '_test_suffix',
      'label' => 'entity_4_test_suffix',
      'id' => '4',
      'number' => 26,
      'array' => $array,
@@ -106,7 +106,7 @@ protected function setUp() {

    $array['level1']['level2'] = 3;
    $entity = ConfigQueryTest::create([
      'label' => $this->randomMachineName() . '_TEST_contains_' . $this->randomMachineName(),
      'label' => 'entity_5_TEST_contains_entity_5',
      'id' => '5',
      'number' => 53,
      'array' => $array,
@@ -352,7 +352,7 @@ public function testConfigEntityQuery() {
  public function testStringIdConditions() {
    // We need an entity with a non-numeric ID.
    $entity = ConfigQueryTest::create([
      'label' => $this->randomMachineName(),
      'label' => 'entity_1',
      'id' => 'foo.bar',
    ]);
    $this->entities[] = $entity;
@@ -635,7 +635,7 @@ public function testLookupKeys() {
    $test_entities = [];
    $storage = \Drupal::entityTypeManager()->getStorage('config_test');
    $entity = $storage->create([
      'label' => $this->randomMachineName(),
      'label' => 'entity_1',
      'id' => '1',
      'style' => 'test',
    ]);
@@ -647,7 +647,7 @@ public function testLookupKeys() {
    $this->assertEqual($expected, $key_value->get('style:test'));

    $entity = $storage->create([
      'label' => $this->randomMachineName(),
      'label' => 'entity_2',
      'id' => '2',
      'style' => 'test',
    ]);
@@ -658,7 +658,7 @@ public function testLookupKeys() {
    $this->assertEqual($expected, $key_value->get('style:test'));

    $entity = $storage->create([
      'label' => $this->randomMachineName(),
      'label' => 'entity_3',
      'id' => '3',
      'style' => 'blah',
    ]);