Skip to content

Commit

Permalink
OXDEV-7647: Use logicalOr to assert getSettingValue parameter for the…
Browse files Browse the repository at this point in the history
…me test
  • Loading branch information
MarcelOxid committed Dec 6, 2023
1 parent 4d22a2d commit 1f02d60
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace OxidEsales\GraphQL\ConfigurationAccess\Tests\Unit\Infrastructure;

use OxidEsales\GraphQL\ConfigurationAccess\Setting\Enum\FieldType;
use OxidEsales\GraphQL\ConfigurationAccess\Setting\Exception\NoSettingsFoundForThemeException;

/**
Expand All @@ -28,7 +29,7 @@ public function testSetterThrowsExceptionOnNotExistingSetting(

$repository = $this->getSut(methods: ['getSettingValue']);
$repository->method('getSettingValue')
->with($name, $this->anything(), $themeId)
->with($name, $this->logicalOr(...FieldType::getEnums()), $themeId)
->willThrowException(new NoSettingsFoundForThemeException($themeId));

$this->expectException(NoSettingsFoundForThemeException::class);
Expand Down

0 comments on commit 1f02d60

Please sign in to comment.