test: add comprehensive unit tests for FeeCalculationService (Closes #45) #90
Reference in New Issue
Block a user
Delete Branch "feature/issue-45-unit-tests-for-feecalculationservice"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
FeeCalculationServiceTest.phpwith 22 PHPUnit test methods covering all 13 test cases from issue #45phpunit.xmlconfiguration for running the test suiteTest Coverage
testSingleMemberNoFamilyGetsBaseRatetestSingleChildInFamilyGetsFirstChildRatetestTwoChildrenInFamilyGetCorrectRatestestThreeOrMoreChildrenGetCatchAllRatetestInactiveMemberWithFrozenRateUsesFrozenRatetestErziehungsberechtigterPaysFeetestBatchCalculateSkipsManualOverridestestMixedFamilyOnlyActiveChildrenCountForDiscounttestMemberBecomesInactiveMidYearUsesFrozenRatetestNoFeeRuleForYearThrowsExceptiontestRuleChangeBetweenYearsAppliesCorrectRuletestEmptyFamilyNoChildrenReturnsBaseRatetestMemberWithoutFamilyWithOverrideBankingGetsBaseRateCloses #45