Skip to content

Commit

Permalink
NTR: fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Jan 17, 2025
1 parent 8bd0454 commit 61637c9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/Integration/Settings/LoggerSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testSettingsCanBeReadFromDatabase(): void
$systemConfigService->set(SettingsService::SYSTEM_CONFIG_DOMAIN . '.' . LoggerSettings::KEY_LOG_FILE_DAYS, 10);
$systemConfigService->set(SettingsService::SYSTEM_CONFIG_DOMAIN . '.' . LoggerSettings::KEY_DEBUG_MODE, false);

$settingsService = new SettingsService($systemConfigService);
$settingsService = new SettingsService($this->getContainer());

$actualSettings = $settingsService->getLoggerSettings();

Expand All @@ -36,12 +36,8 @@ public function testSettingsCanBeReadFromDatabase(): void

public function testSettingsAreCachedPerSalesChannel():void
{

/**
* @var SystemConfigService $systemConfigService
*/
$systemConfigService = $this->getContainer()->get(SystemConfigService::class);
$settingsService = new SettingsService($systemConfigService);

$settingsService = new SettingsService($this->getContainer());

$expectedSettings = $settingsService->getLoggerSettings();
$actualSettings = $settingsService->getLoggerSettings();
Expand Down

0 comments on commit 61637c9

Please sign in to comment.