Loading core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php +9 −9 Original line number Diff line number Diff line Loading @@ -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, Loading @@ -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, Loading @@ -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, Loading @@ -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, Loading @@ -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, Loading Loading @@ -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; Loading Loading @@ -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', ]); Loading @@ -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', ]); Loading @@ -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', ]); Loading Loading
core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php +9 −9 Original line number Diff line number Diff line Loading @@ -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, Loading @@ -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, Loading @@ -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, Loading @@ -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, Loading @@ -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, Loading Loading @@ -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; Loading Loading @@ -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', ]); Loading @@ -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', ]); Loading @@ -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', ]); Loading