Skip to content

Commit

Permalink
reinstate mocked values
Browse files Browse the repository at this point in the history
  • Loading branch information
acsauk committed Nov 12, 2024
1 parent ef7393b commit 8255062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ services:
XDEBUG_MODE: develop,debug,coverage
SESSION_EXPIRES: 30 # session expiry length to support timeout message.
COOKIE_EXPIRES: 1440 # cookie expiry for complete logout - initial value to be 24 hours.
SUPPORT_DATASTORE_LPAS: "true"
SUPPORT_DATASTORE_LPAS: "false"
depends_on:
- api-web

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function __invoke(array $data): ArrayObject
//introduce feature flag here #3551
//the lpaData array converted to object using hydrator
if (($this->featureEnabled)('support_datastore_lpas')) {
// Set asLpaStoreLpa to toggle the format of the response (but ensure its set to false before running tests)
$mockedCombinedLpa = self::getMockedCombinedFormat(false);
$data['lpa'] = ($this->lpaDataFormatter)($mockedCombinedLpa);
} else {
Expand Down Expand Up @@ -220,11 +221,12 @@ public static function getMockedCombinedFormat(bool $asLpaStoreLpa): array
],
],
],
'attorneyActDecisions' => 'When Registered',
'whenTheLpaCanBeUsed' => 'when-has-capacity',
'applicationHasRestrictions' => false,
'applicationHasGuidance' => false,
'lpaDonorSignatureDate' => '2012-12-12',
'lifeSustainingTreatment' => 'Option A',
'howAttorneysMakeDecisions' => 'jointly'
];

if ($asLpaStoreLpa) {
Expand Down

0 comments on commit 8255062

Please sign in to comment.