diff --git a/core/modules/system/src/Tests/Entity/EntityReferenceFieldTest.php b/core/modules/system/src/Tests/Entity/EntityReferenceFieldTest.php index 14a67ef4ef9..4f66b4edd38 100644 --- a/core/modules/system/src/Tests/Entity/EntityReferenceFieldTest.php +++ b/core/modules/system/src/Tests/Entity/EntityReferenceFieldTest.php @@ -170,7 +170,7 @@ class EntityReferenceFieldTest extends EntityUnitTestBase { else { // A non-existent or NULL entity target id must not return any item in // the target entities set. - $this->assertFalse(isset($loaded_entities[$delta])); + $this->assertFalse(isset($entities[$delta])); } } }