"All new business logic should have corresponding unit tests."
Description
This PR introduces unit tests for the new business logic in the GedcomParser, FamilyParser, IndividualParser, MediaParser, and ProgressReporter classes. The tests cover all possible scenarios, including edge cases, ensuring that the methods in these classes behave as expected and return the correct output for a given input.
Summary of Changes
Created new unit test files FamilyParserTest.php, IndividualParserTest.php, MediaParserTest.php, and ProgressReporterTest.php in the tests/Unit/ directory.
Added comprehensive tests for all public methods in the FamilyParser, IndividualParser, MediaParser, and ProgressReporter classes.
Modified the existing GedcomParserTest.php file to include additional unit tests for the new business logic in the GedcomParser class.
Ensured that all tests are comprehensive and cover all possible scenarios, including edge cases.
Utilized Laravel's database testing features to simulate database interactions where necessary.
These changes help improve the reliability and maintainability of the code by ensuring that all new business logic is thoroughly tested.
PR Feedback (click)
I created this PR to address this rule:
"All new business logic should have corresponding unit tests."
Description
This PR introduces unit tests for the new business logic in the
GedcomParser
,FamilyParser
,IndividualParser
,MediaParser
, andProgressReporter
classes. The tests cover all possible scenarios, including edge cases, ensuring that the methods in these classes behave as expected and return the correct output for a given input.Summary of Changes
FamilyParserTest.php
,IndividualParserTest.php
,MediaParserTest.php
, andProgressReporterTest.php
in thetests/Unit/
directory.FamilyParser
,IndividualParser
,MediaParser
, andProgressReporter
classes.GedcomParserTest.php
file to include additional unit tests for the new business logic in theGedcomParser
class.These changes help improve the reliability and maintainability of the code by ensuring that all new business logic is thoroughly tested.