But as UserAccountManagerAccessException is raised in different places with 1 string parameter(message) if there is a way to catch
and check this message text ?
$this->expectException(\App\Exceptions\UserAccountManagerAccessException::class);
$this->expectExceptionMessage('The user does not have access to perform this action');
$response = $this->actingAs($loggedUser, 'api')->post(route('articles.store'), ...