Skip to content

Commit

Permalink
First test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperaj committed Dec 13, 2024
1 parent 1ceca5c commit 35b7050
Show file tree
Hide file tree
Showing 16 changed files with 5 additions and 880 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ public function cast(mixed $value, ObjectMapper $hydrator): ?string
{
if (is_null(LpaType::tryFrom($value))) {
$value = match ($value) {
'personal-welfare' => LpaType::PERSONAL_WELFARE,
'property-and-affairs' => LpaType::PROPERTY_AND_AFFAIRS,
default => throw new InvalidArgumentException('Invalid shorthand name: ' . $value),
'personal-welfare' => LpaType::PERSONAL_WELFARE->value,
'property-and-affairs' => LpaType::PROPERTY_AND_AFFAIRS->value,

Check warning on line 21 in service-front/app/src/Common/src/Entity/Casters/CastToCaseSubtype.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Common/src/Entity/Casters/CastToCaseSubtype.php#L21

Added line #L21 was not covered by tests
default =>
throw new InvalidArgumentException('Invalid shorthand name: ' . $value),

Check warning on line 23 in service-front/app/src/Common/src/Entity/Casters/CastToCaseSubtype.php

View check run for this annotation

Codecov / codecov/patch

service-front/app/src/Common/src/Entity/Casters/CastToCaseSubtype.php#L23

Added line #L23 was not covered by tests
};
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 35b7050

Please sign in to comment.