Skip to content

Commit

Permalink
Fix FindActorInLpa tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperaj committed Jan 16, 2025
1 parent 92949eb commit 2d43361
Showing 1 changed file with 32 additions and 34 deletions.
66 changes: 32 additions & 34 deletions service-api/app/test/AppTest/Service/Lpa/FindActorInLpaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use App\Entity\Sirius\SiriusLpa as CombinedSiriusLpa;
use App\Entity\Sirius\SiriusLpaAttorney;
use App\Entity\Sirius\SiriusLpaDonor;
use App\Exception\ActorDateOfBirthNotSetException;
use App\Enum\ActorStatus;
use App\Service\Lpa\FindActorInLpa;
use App\Service\Lpa\FindActorInLpa\ActorMatch;
use App\Service\Lpa\GetAttorneyStatus;
Expand Down Expand Up @@ -100,30 +100,33 @@ public function returns_actor_and_lpa_details_if_match_found_combined_sirius(
];

$lpa = new CombinedSiriusLpa(
applicationHasGuidance: null,
applicationHasRestrictions: null,
applicationType: null,
attorneys: $attorneys,
attorneyActDecisions: null,
caseSubtype: null,
channel: null,
dispatchDate: null,
donor: $this->donorFixture(),
hasSeveranceWarning: null,
invalidDate: null,
lifeSustainingTreatment: null,
lpaDonorSignatureDate: null,
lpaIsCleansed: null,
onlineLpaId: null,
receiptDate: null,
registrationDate: null,
rejectedDate: null,
replacementAttorneys: null,
status: null,
statusDate: null,
trustCorporations: null,
uId: '700000012346',
withdrawnDate: null
applicationHasGuidance: null,
applicationHasRestrictions: null,
applicationType: null,
attorneys: $attorneys,
caseAttorneyJointly: false,
caseAttorneyJointlyAndJointlyAndSeverally: null,
caseAttorneyJointlyAndSeverally: true,
caseSubtype: null,
channel: null,
dispatchDate: null,
donor: $this->donorFixture(),
hasSeveranceWarning: null,
invalidDate: null,
lifeSustainingTreatment: null,
lpaDonorSignatureDate: null,
lpaIsCleansed: null,
onlineLpaId: null,
receiptDate: null,
registrationDate: null,
rejectedDate: null,
replacementAttorneys: null,
status: null,
statusDate: null,
trustCorporations: null,
uId: '700000012346',
whenTheLpaCanBeUsed: null,
withdrawnDate: null
);


Expand Down Expand Up @@ -299,9 +302,8 @@ private function inactiveAttorneyFixture(): SiriusLpaAttorney
otherNames: null,
postcode: 'Gg1 2ff',
surname: 'Person',
systemStatus: 'false',
systemStatus: ActorStatus::INACTIVE,
town: null,
type: null,
uId: '7000000002222'
);
}
Expand Down Expand Up @@ -341,9 +343,8 @@ private function ghostAttorneyFixture(): Person
otherNames: null,
postcode: 'BB1 9ee',
surname: '',
systemStatus: 'true',
systemStatus: ActorStatus::ACTIVE,
town: null,
type: null,
uId: '700000003333'
);
}
Expand Down Expand Up @@ -405,9 +406,8 @@ private static function activeAttorneyFixture(): SiriusLpaAttorney
otherNames: null,
postcode: 'Ab1 2Cd',
surname: 'T’esting',
systemStatus: 'true',
systemStatus: ActorStatus::ACTIVE,
town: null,
type: null,
uId: '7000000055555'
);
}
Expand All @@ -428,9 +428,8 @@ public static function nullDOBAttorneyFixture(): SiriusLpaAttorney
otherNames: null,
postcode: 'Ab1 2Cd',
surname: 'T’esting',
systemStatus: 'true',
systemStatus: ActorStatus::ACTIVE,
town: null,
type: null,
uId: '700000001234'
);
}
Expand Down Expand Up @@ -472,7 +471,6 @@ private static function donorFixture(): SiriusLpaDonor
surname: 'Person',
systemStatus: null,
town: null,
type: null,
uId: '700000001111'
);
}
Expand Down

0 comments on commit 2d43361

Please sign in to comment.