diff --git a/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php index 8da0b65..3687f34 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php @@ -642,7 +642,7 @@ public function testLookupKeys() { // Ensure that a delete clears a key. $entity->delete(); - $this->assertEqual([], $key_value->get('style:blah')); + $this->assertEqual(NULL, $key_value->get('style:blah')); // Ensure that delete only clears one key. $entity_id = array_pop($expected); @@ -650,7 +650,7 @@ public function testLookupKeys() { $this->assertEqual($expected, $key_value->get('style:test')); $entity_id = array_pop($expected); $test_entities[$entity_id]->delete(); - $this->assertEqual($expected, $key_value->get('style:test')); + $this->assertEqual(NULL, $key_value->get('style:test')); } /** diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php index 3ff669a..8897eeb 100644 --- a/core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php +++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityLanguageTestBase.php @@ -88,7 +88,6 @@ protected function setUp() { 'bundle' => $entity_type, 'translatable' => TRUE, ])->save(); - $this->field[$entity_type] = FieldConfig::load($entity_type . '.' . $entity_type . '.' . $this->fieldName); FieldStorageConfig::create(array( 'field_name' => $this->untranslatableFieldName,