Serreau Jovann 25ddae58b2 test: ajout tests AnalyticsEvent, AnalyticsUniqId, AppLog, Attestation
tests/Entity/AnalyticsTest.php (nouveau, 8 tests):
- AnalyticsUniqId: constructor (id null, createdAt, events vide),
  setters (uid, hash, ipHash, userAgent, deviceType),
  screen (width, height), optionals (language, os, browser),
  user (nullable, set/get)
- AnalyticsEvent: constructor (id null, createdAt),
  setters (visitor, eventName, url, title, referrer),
  nullables (title, referrer null par defaut)

tests/Entity/AppLogTest.php (nouveau, 6 tests):
- testConstructor: method, url, route, action, user null, ip null,
  hmac non vide, createdAt
- testConstructorWithUser: user et ip passes au constructeur
- testVerifyHmacValid: meme secret retourne true
- testVerifyHmacInvalid: secret different retourne false
- testHmacDeterministic: hmac identique a chaque verification
- testDifferentDataProducesDifferentHmac: donnees differentes
  produisent des hmac differents

tests/Entity/AttestationTest.php (nouveau, 9 tests):
- testConstructor: type, ip, email, reference non vide, hmac non vide,
  status='pending', createdAt
- testReferencePrefix: 'access' contient ACC, 'deletion' contient DEL,
  'no_data' contient ABS dans la reference
- testPdfFiles: unsigned, signed, certificate get/set nullable
- testSubmitterId: get/set nullable
- testMarkAsSigned: status passe a 'signed'
- testMarkAsSent: status passe a 'sent'
- testVerifyValid: meme secret retourne true
- testVerifyInvalid: secret different retourne false
- testEmailTracking: null par defaut

Resultat: 338 tests, 670 assertions, 0 failures

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 00:03:53 +02:00
2026-03-30 18:52:03 +02:00
2026-03-30 18:52:03 +02:00
2026-03-30 18:51:57 +02:00
2026-03-30 18:51:57 +02:00
2026-03-30 18:52:03 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
2026-04-01 15:42:52 +02:00
Description
No description provided
9.6 MiB
Languages
PHP 66.2%
Twig 28.7%
JavaScript 4%
Jinja 0.5%
Makefile 0.3%
Other 0.2%