tetssssss
This commit is contained in:
parent
6f07d70436
commit
8063e7bec9
28 changed files with 771 additions and 273 deletions
|
@ -1,18 +1,20 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Enum\SystemSettingKey;
|
||||
use App\Service\Config\AppName;
|
||||
use App\Service\ConfigurationService;
|
||||
|
||||
test('it returns the system name from configuration service', function () {
|
||||
test('it returns the system name from configuration service', function (): void {
|
||||
|
||||
/** @var ConfigurationService $configService */
|
||||
$configService = $this->getContainer()->get(ConfigurationService::class);
|
||||
$appName = new AppName($configService);
|
||||
expect((string)$appName)->toBe(SystemSettingKey::SYSTEM_NAME->defaultValue());
|
||||
expect((string) $appName)->toBe(SystemSettingKey::SYSTEM_NAME->defaultValue());
|
||||
|
||||
$expected = 'Test System Name';
|
||||
$configService->set(SystemSettingKey::SYSTEM_NAME, $expected);
|
||||
expect((string)$appName)->toBe($expected);
|
||||
expect((string) $appName)->toBe($expected);
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue