Mercurial > hg > isophonics-drupal-site
diff core/modules/rest/tests/src/Functional/ResourceTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/core/modules/rest/tests/src/Functional/ResourceTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/rest/tests/src/Functional/ResourceTest.php Thu May 09 15:33:08 2019 +0100 @@ -72,7 +72,7 @@ ])->save(); // Verify that accessing the resource returns 406. - $this->drupalGet($this->entity->urlInfo()->setRouteParameter('_format', 'hal_json')); + $this->drupalGet($this->entity->toUrl()->setRouteParameter('_format', 'hal_json')); // \Drupal\Core\Routing\RequestFormatRouteFilter considers the canonical, // non-REST route a match, but a lower quality one: no format restrictions // means there's always a match and hence when there is no matching REST @@ -98,7 +98,7 @@ ])->save(); // Verify that accessing the resource returns 401. - $this->drupalGet($this->entity->urlInfo()->setRouteParameter('_format', 'hal_json')); + $this->drupalGet($this->entity->toUrl()->setRouteParameter('_format', 'hal_json')); // \Drupal\Core\Routing\RequestFormatRouteFilter considers the canonical, // non-REST route a match, but a lower quality one: no format restrictions // means there's always a match and hence when there is no matching REST