mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 05:41:52 +09:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user