diff --git a/core/modules/user/src/Tests/UserEntityReferenceTest.php b/core/modules/user/src/Tests/UserEntityReferenceTest.php index 025aedf..b6d0d1f 100644 --- a/core/modules/user/src/Tests/UserEntityReferenceTest.php +++ b/core/modules/user/src/Tests/UserEntityReferenceTest.php @@ -81,17 +81,17 @@ function testUserSelectionByRole() { /** @var \Drupal\entity_reference\EntityReferenceAutocomplete $autocomplete */ $autocomplete = \Drupal::service('entity_reference.autocomplete'); - $matches = $autocomplete->getMatches($field_definition, 'user', 'user', 'NULL', '', 'aabb'); + $matches = $autocomplete->getMatches($field_definition, 'user', 'user', 'NULL', 'aabb'); $this->assertEqual(count($matches), 2); $users = array(); foreach ($matches as $match) { - $users[] = $match['label']; + $users[] = $match['text']; } $this->assertTrue(in_array($user1->label(), $users)); $this->assertTrue(in_array($user2->label(), $users)); $this->assertFalse(in_array($user3->label(), $users)); - $matches = $autocomplete->getMatches($field_definition, 'user', 'user', 'NULL', '', 'aabbbb'); + $matches = $autocomplete->getMatches($field_definition, 'user', 'user', 'NULL', 'aabbbb'); $this->assertEqual(count($matches), 0, ''); } }