- Rename all references from E-Cosplay/Ecosplay to SITECONSEIL - Update entity from Association to SARL SITECONSEIL (Siret: 418664058) - Update address to 27 rue Le Serurier, 02100 Saint-Quentin - Update emails: contact@siteconseil.fr, rgpd@siteconseil.fr - Update hosting from GCP to OVHcloud (Roubaix, Gravelines, Strasbourg, Paris) - Update legal pages: mentions legales, CGV, RGPD, conformite, hebergement, cookies, CGU - Add tarifs page with tabs: Site Internet, E-Commerce, Nom de domaine, Esy-Mail, Esy-Mailer, Esy-Tchat, Esy-Meet, Esy-Defender - Add Discord webhook notification workflow - Disable deploy and sonarqube workflows - Update OAuth Keycloak realm to master - Update logo references to logo_facture.png - Remove forced image sizing in Liip Imagine filters - Update SonarQube project key and badge token - Update tribunal competent to Saint-Quentin - Move tarif tabs JS to app.js (CSP compliance) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
680 B
PHP
26 lines
680 B
PHP
<?php
|
|
|
|
namespace App\Tests\Message;
|
|
|
|
use App\Message\AnalyticsMessage;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class AnalyticsMessageTest extends TestCase
|
|
{
|
|
public function testMessageCreation(): void
|
|
{
|
|
$payload = ['foo' => 'bar'];
|
|
$message = new AnalyticsMessage('uid-123', 'test_action', $payload);
|
|
|
|
$this->assertSame('uid-123', $message->uid);
|
|
$this->assertSame('test_action', $message->action);
|
|
$this->assertSame($payload, $message->payload);
|
|
}
|
|
|
|
public function testMessageDefaultPayload(): void
|
|
{
|
|
$message = new AnalyticsMessage('uid-123', 'test_action');
|
|
$this->assertSame([], $message->payload);
|
|
}
|
|
}
|