X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fuser%2Fsrc%2FTests%2FRestRegisterUserTest.php;fp=web%2Fcore%2Fmodules%2Fuser%2Fsrc%2FTests%2FRestRegisterUserTest.php;h=31bcce4d295c96a5b3d606c3e7fa47a31d2b5f81;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=450c5529195fdbcfa98674bbb9118e67658c52b0;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/web/core/modules/user/src/Tests/RestRegisterUserTest.php b/web/core/modules/user/src/Tests/RestRegisterUserTest.php index 450c55291..31bcce4d2 100644 --- a/web/core/modules/user/src/Tests/RestRegisterUserTest.php +++ b/web/core/modules/user/src/Tests/RestRegisterUserTest.php @@ -2,6 +2,7 @@ namespace Drupal\user\Tests; +use Drupal\Core\Url; use Drupal\rest\Tests\RESTTestBase; use Drupal\user\Entity\Role; use Drupal\user\RoleInterface; @@ -166,7 +167,7 @@ class RestRegisterUserTest extends RESTTestBase { */ protected function registerRequest($name, $include_password = TRUE) { $serialized = $this->createSerializedUser($name, $include_password); - $this->httpRequest('/user/register', 'POST', $serialized, 'application/hal+json'); + $this->httpRequest(Url::fromRoute('rest.user_registration.POST', ['_format' => 'hal_json']), 'POST', $serialized, 'application/hal+json'); } }