forked from fa/breadcrumb-the-shire
refactor(arch): enforce gateway compliance and remove service-wrapping gateways
This commit is contained in:
@@ -4,7 +4,7 @@ namespace MintyPHP\Tests\Support;
|
||||
|
||||
use MintyPHP\App\AppContainer;
|
||||
use MintyPHP\Service\Settings\SettingCacheService;
|
||||
use MintyPHP\Service\Settings\ThemeConfigService;
|
||||
use MintyPHP\Service\Settings\ThemeConfigGateway;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ThemeResolutionTest extends TestCase
|
||||
@@ -17,9 +17,9 @@ class ThemeResolutionTest extends TestCase
|
||||
|
||||
$this->container = new AppContainer();
|
||||
|
||||
$themeConfig = $this->createMock(ThemeConfigService::class);
|
||||
$themeConfig = $this->createMock(ThemeConfigGateway::class);
|
||||
$themeConfig->method('all')->willReturn(['light' => 'Light', 'dark' => 'Dark']);
|
||||
$this->container->set(ThemeConfigService::class, fn () => $themeConfig);
|
||||
$this->container->set(ThemeConfigGateway::class, fn () => $themeConfig);
|
||||
|
||||
$this->setAppSettings([]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user