diff --git a/src/Tests/LinkTypeFieldEntryTest.php b/src/Tests/LinkTypeFieldEntryTest.php index efbc58d..eabea1f 100644 --- a/src/Tests/LinkTypeFieldEntryTest.php +++ b/src/Tests/LinkTypeFieldEntryTest.php @@ -2,6 +2,7 @@ namespace Drupal\flag\Tests; +use Drupal\Core\Url; use Drupal\field_ui\Tests\FieldUiTestTrait; /** @@ -151,9 +152,11 @@ class LinkTypeFieldEntryTest extends FlagTestBase { // Get the details form. $this->clickLink($this->flag->getShortText('unflag')); + + $node_url = Url::fromRoute('entity.node.canonical', ['node' => $this->nodeId]); $this->assertUrl('flag/details/edit/' . $flag_id . '/' . $this->nodeId, [ 'query' => [ - 'destination' => '/node/' . $this->nodeId, + 'destination' => $node_url->toString(), ], ]);