From b9f665cb3d2549bf59eef9addca66b93fad40ef3 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Sun, 17 May 2026 00:22:38 +0100 Subject: [PATCH] Fixes for 2 code quality findings in Client legacy tests (#3573) * Apply suggested fix to tests-legacy/modules/Client/Api/GuestTest.php from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * Apply suggested fix to tests-legacy/modules/Client/Api/GuestTest.php from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> * fix: align GuestTest exception message with current API text Agent-Logs-Url: https://github.com/FOSSBilling/FOSSBilling/sessions/f1cb71d1-97d1-46de-aec1-cca36d9a6c43 Co-authored-by: admdly <2807620+admdly@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: admdly <2807620+admdly@users.noreply.github.com> --- tests-legacy/modules/Client/Api/GuestTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests-legacy/modules/Client/Api/GuestTest.php b/tests-legacy/modules/Client/Api/GuestTest.php index c0dfb4b16..4595b7f79 100644 --- a/tests-legacy/modules/Client/Api/GuestTest.php +++ b/tests-legacy/modules/Client/Api/GuestTest.php @@ -521,8 +521,8 @@ final class GuestTest extends \BBTestCase $client = new Guest(); $client->setDi($di); - // Expect a FOSSBilling\Exception to be thrown with a specific message - $this->expectException(\FOSSBilling\Exception::class); + // Expect a FOSSBilling\InformationException to be thrown with a specific message + $this->expectException(\FOSSBilling\InformationException::class); $this->expectExceptionMessage('The link has expired or you have already reset your password.'); $client->update_password($data); }