Skip to content

Commit

Permalink
[BUGFIX] Use static method call for createStub
Browse files Browse the repository at this point in the history
Relates: #611
  • Loading branch information
extcode committed Jan 7, 2025
1 parent 2cb848c commit 2b12385
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function getTypeZonePluginSettingsReturnsTypeZoneSettings(): void

private function createSubject(array $configurations)
{
$configurationManager = $this->createStub(ConfigurationManagerInterface::class);
$configurationManager = self::createStub(ConfigurationManagerInterface::class);
$configurationManager->method('getConfiguration')->willReturn($configurations);

return new class ($configurationManager, new ServiceFactory()) extends AbstractConfigurationFromTypoScriptService {};
Expand Down
4 changes: 2 additions & 2 deletions Tests/Unit/Service/TaxClassServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,13 @@ public function parsingTaxClassesFromTypoScriptWithIntegerZeroAsCalcIsValid(): v

private function createSubject(array $settings): TaxClassService
{
$configurationManager = $this->createStub(ConfigurationManagerInterface::class);
$configurationManager = self::createStub(ConfigurationManagerInterface::class);
$configurationManager->method('getConfiguration')->willReturn($settings);

return new TaxClassService(
$configurationManager,
new TaxClassFactory(
$this->createStub(LoggerInterface::class)
self::createStub(LoggerInterface::class)
)
);
}
Expand Down

0 comments on commit 2b12385

Please sign in to comment.