Skip to content

Commit

Permalink
feat(ZMS-3429): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manjencic committed Jan 29, 2025
1 parent be17ecc commit 6965768
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function mapOfficesWithScope(ProviderList $providerList, bool $sho
foreach ($providerList as $provider) {
$providerScope = self::mapScopeForProvider((int) $provider->id, $scopes);

if (! $showUnpublished && ! (bool) $provider->data['public']) {
if (! $showUnpublished && isset($provider->data['public']) && ! (bool) $provider->data['public']) {
continue;
}

Expand Down Expand Up @@ -125,7 +125,10 @@ public static function mapServicesWithCombinations(
});

foreach ($requestArray as $service) {
if (! $showUnpublished && ! (bool) $service->getAdditionalData()['public']) {
if (! $showUnpublished
&& isset($service->getAdditionalData()['public'])
&& ! (bool) $service->getAdditionalData()['public'])
{
continue;
}

Expand Down

0 comments on commit 6965768

Please sign in to comment.