refactor: use DQL to get expiration date of a domain name

This commit is contained in:
Maël Gangloff
2025-10-15 21:24:48 +02:00
parent 0c2148d889
commit ddee6df4bd
2 changed files with 13 additions and 3 deletions

View File

@@ -34,9 +34,8 @@ final class WatchlistControllerTest extends ApiTestCase
public function testGetTrackedDomains()
{
$client = WatchListUpdateProcessorTest::createUserAndWatchlist();
$client->getContainer()->get('doctrine')->getManager()->clear();
$response = $client->request('GET', '/api/tracked');
$this->assertResponseIsSuccessful();
$data = $response->toArray();