Skip to content

Commit

Permalink
UML-3570 removed final references to original, inactive, and active a…
Browse files Browse the repository at this point in the history
…ttorneys
  • Loading branch information
allenannom committed Nov 25, 2024
1 parent c13d4a9 commit eec0d06
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions service-api/app/features/context/Integration/LpaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,7 @@ public function iProvideTheAttorneyDetailsFromAValidPaperLPADocument(): void
$lpaMatchResponse = $addOlderLpa->validateRequest($this->userId, $data);

$expectedLpaArray = json_decode(json_encode($this->lpa), true);
$expectedLpaArray['original_attorneys'] = $expectedLpaArray['attorneys'];
$expectedLpaArray['activeAttorneys'] = $expectedLpaArray['attorneys'];
$expectedLpaArray['inactiveAttorneys'] = [];
$expectedLpa = new \App\Service\Lpa\SiriusLpa($expectedLpaArray);
$expectedLpa = new \App\Service\Lpa\SiriusLpa($expectedLpaArray);
$expectedResponse = new AccessForAllValidation(
new ActorMatch(
new SiriusPerson(json_decode(json_encode($this->lpa->attorneys[0]), true)),
Expand Down Expand Up @@ -1594,10 +1591,7 @@ public function iConfirmDetailsShownToMeOfTheFoundLPAAreCorrect(): void
$lpaMatchResponse = $addOlderLpa->validateRequest($this->userId, $data);

$expectedLpaArray = json_decode(json_encode($this->lpa), true);
$expectedLpaArray['original_attorneys'] = $expectedLpaArray['attorneys'];
$expectedLpaArray['activeAttorneys'] = $expectedLpaArray['attorneys'];
$expectedLpaArray['inactiveAttorneys'] = [];
$expectedLpa = new \App\Service\Lpa\SiriusLpa($expectedLpaArray);
$expectedLpa = new \App\Service\Lpa\SiriusLpa($expectedLpaArray);
$expectedResponse = new AccessForAllValidation(
new ActorMatch(
new SiriusPerson(json_decode(json_encode($lpa->donor), true)),
Expand Down Expand Up @@ -1875,10 +1869,7 @@ public function iProvideDetailsThatMatchAValidPaperDocument($firstnames, $lastna
$lpaMatchResponse = $addAccessForAllLpa->validateRequest($this->userId, $data);

$expectedLpaArray = json_decode(json_encode($this->lpa), true);
$expectedLpaArray['original_attorneys'] = $expectedLpaArray['attorneys'];
$expectedLpaArray['activeAttorneys'] = $expectedLpaArray['attorneys'];
$expectedLpaArray['inactiveAttorneys'] = [];
$expectedLpa = new \App\Service\Lpa\SiriusLpa($expectedLpaArray);
$expectedLpa = new \App\Service\Lpa\SiriusLpa($expectedLpaArray);
$expectedResponse = new AccessForAllValidation(
new ActorMatch(
new SiriusPerson(json_decode(json_encode($this->lpa->donor), true)),
Expand Down Expand Up @@ -1938,10 +1929,7 @@ public function iProvideTheDetailsFromAValidPaperLPADocument(): void
$lpaMatchResponse = $addOlderLpa->validateRequest($this->userId, $data);

$expectedLpaArray = json_decode(json_encode($this->lpa), true);
$expectedLpaArray['original_attorneys'] = $expectedLpaArray['attorneys'];
$expectedLpaArray['activeAttorneys'] = $expectedLpaArray['attorneys'];
$expectedLpaArray['inactiveAttorneys'] = [];
$expectedLpa = new \App\Service\Lpa\SiriusLpa($expectedLpaArray);
$expectedLpa = new \App\Service\Lpa\SiriusLpa($expectedLpaArray);
$expectedResponse = new AccessForAllValidation(
new ActorMatch(
new SiriusPerson(json_decode(json_encode($this->lpa->donor), true)),
Expand Down Expand Up @@ -2739,13 +2727,10 @@ public function iRequestForANewActivationKeyAgain(): void
);

$addOlderLpa = $this->container->get(AddAccessForAllLpa::class);
$response = $addOlderLpa->validateRequest($this->userId, $data);
$response = $addOlderLpa->validateRequest($this->userId, $data);

$expectedLpaArray = json_decode(json_encode($this->lpa), true);
$expectedLpaArray['original_attorneys'] = $expectedLpaArray['attorneys'];
$expectedLpaArray['activeAttorneys'] = $expectedLpaArray['attorneys'];
$expectedLpaArray['inactiveAttorneys'] = [];
$expectedLpa = new \App\Service\Lpa\SiriusLpa($expectedLpaArray);
$expectedLpa = new \App\Service\Lpa\SiriusLpa($expectedLpaArray);
$expectedResponse = new AccessForAllValidation(
new ActorMatch(
new SiriusPerson(json_decode(json_encode($this->lpa->donor), true)),
Expand Down

0 comments on commit eec0d06

Please sign in to comment.