From 923d36ba4ec09f40c78a2d30782332700e82736e Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 15 Dec 2025 14:24:09 +0100 Subject: [PATCH] Adapt action test to previous refactor --- tests/Service/ActionServiceTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Service/ActionServiceTest.php b/tests/Service/ActionServiceTest.php index 3f6ef0e..ce04d51 100644 --- a/tests/Service/ActionServiceTest.php +++ b/tests/Service/ActionServiceTest.php @@ -80,6 +80,7 @@ class ActionServiceTest extends TestCase $action2 = new Actions(); $action2->setDate(new \DateTimeImmutable('-2 hours')); // Old + $action2->setUsers($user); $action2->setActionType('LOGOUT'); $activities = [$action1, $action2]; @@ -91,8 +92,7 @@ class ActionServiceTest extends TestCase // Check first activity (Recent) $this->assertEquals('#086572', $result[0]['color']); $this->assertEquals('LOGIN', $result[0]['actionType']); - $this->assertSame($user, $result[0]['users']); - $this->assertSame($org, $result[0]['organization']); + $this->assertSame($user->getName(), $result[0]['userName']); // Check second activity (Old) $this->assertEquals('#cc664c', $result[1]['color']);