mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-05 22:54:33 +09:00
* Initial plan * Remove unused variables and fix test issues in Invoice ServiceTest - Remove unused $itemInvoiceServiceMock variable from testGetDi() - Remove duplicate test data for 'id' => 1 in dataForSearchQuery() - Remove unused $itemInvoiceServiceMock and fix closure in testToApiArray() - Remove duplicate setDi() call in testOnAfterAdminInvoiceReminderSent() - Fix incorrect method call to onAfterAdminInvoiceReminderSent() Co-authored-by: admdly <2807620+admdly@users.noreply.github.com> * Fix test: handle both 'email' and 'Email' service names The onAfterAdminInvoiceReminderSent method calls mod_service('Email') with uppercase E, but the test closure was only checking for lowercase 'email'. Updated the closure to handle both cases. Co-authored-by: admdly <2807620+admdly@users.noreply.github.com> * Fix test: remove return value assertions for void method The onAfterAdminInvoiceReminderSent method has a void return type, so the test should not check for a return value. Removed the result variable and assertions that were expecting a boolean return. Co-authored-by: admdly <2807620+admdly@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>