$this->kernelBrowser = null;
$client =
$this->
getBrowser(true,
[UserVerifiedScope::IDENTIFIER
]);
$client->
request('POST', '/api/user',
$data);
$response =
$client->
getResponse();
static::
assertSame(Response::HTTP_NO_CONTENT,
$response->
getStatusCode());
} public function testRemoveRoleAssignment(): void
{ $ids =
new IdsCollection();
$user =
[ 'id' =>
$ids->
get('user'
),
'email' => 'foo@bar.com',
'firstName' => 'Firstname',
'lastName' => 'Lastname',
'password' => TestDefaults::HASHED_PASSWORD,
'username' => 'foobar',
'localeId' =>
$this->
getContainer()->
get(Connection::
class)->
fetchOne('SELECT LOWER(HEX(id)) FROM locale LIMIT 1'
),
'aclRoles' =>
[ ['id' =>
$ids->
get('role-1'
), 'name' => 'role-1'
],
[