projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website]
/
web
/
core
/
modules
/
user
/
src
/
Tests
/
RestRegisterUserTest.php
diff --git
a/web/core/modules/user/src/Tests/RestRegisterUserTest.php
b/web/core/modules/user/src/Tests/RestRegisterUserTest.php
index 450c5529195fdbcfa98674bbb9118e67658c52b0..31bcce4d295c96a5b3d606c3e7fa47a31d2b5f81 100644
(file)
--- 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;
namespace Drupal\user\Tests;
+use Drupal\Core\Url;
use Drupal\rest\Tests\RESTTestBase;
use Drupal\user\Entity\Role;
use Drupal\user\RoleInterface;
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);
*/
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');
}
}
}
}