test: add WatchlistUpdateProcessor tests

This commit is contained in:
Maël Gangloff
2025-10-15 18:55:39 +02:00
parent 7a3d64256e
commit a193338664
5 changed files with 92 additions and 37 deletions

View File

@@ -45,7 +45,7 @@ readonly class WatchListUpdateProcessor implements ProcessorInterface
{
/** @var User $user */
$user = $this->security->getUser();
$data->setUser($user);
$data->setUser($user)->setToken($uriVariables['token'] ?? $data->getToken());
if ($this->parameterBag->get('limited_features')) {
if ($data->getDomains()->count() > (int) $this->parameterBag->get('limit_max_watchlist_domains')) {