diff --git a/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php b/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php index 31ad684..03daf1f 100644 --- a/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php +++ b/core/modules/entity_reference/src/Tests/EntityReferenceAdminTest.php @@ -257,7 +257,8 @@ public function testFieldAdminHandler() { // Try to add a new node and fill the entity reference field. $this->drupalGet('node/add/' . $this->type); $result = $this->xpath('//input[@name="field_test_entity_ref_field[0][target_id]" and contains(@data-autocomplete-path, "/entity_reference_autocomplete/node/views/")]'); - $this->drupalGet($result[0]['data-autocomplete-path'], array('query' => array('q' => 'Foo'))); + $target_url = $this->getAbsoluteUrl($result[0]['data-autocomplete-path']); + $this->drupalGet($target_url, array('query' => array('q' => 'Foo'))); $this->assertRaw('Foo'); }