Expect that user registration is always enabled in tests

This commit is contained in:
Yassine Guedidi
2025-02-16 23:12:52 +01:00
parent 163c3773cb
commit 738e95615a
4 changed files with 2 additions and 14 deletions

View File

@ -41,12 +41,6 @@ class WallabagRestControllerTest extends WallabagApiTestCase
// create a new client instead of using $this->client to be sure client isn't authenticated
$client = $this->createUnauthorizedClient();
if (!$client->getContainer()->getParameter('fosuser_registration')) {
$this->markTestSkipped('fosuser_registration is not enabled.');
return;
}
$client->getContainer()->get(Config::class)->set('api_user_registration', 1);
$client->request('GET', '/api/info');