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>
This commit is contained in:
authored and GitHub committed 2026-05-17 00:22:38 +01:00
1 parent 24718cecd2
commit b9f665cb3d
1 file changed
+2 -2
@@ -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);
}