nochmal nue
This commit is contained in:
parent
2c2e34b71e
commit
6f07d70436
27 changed files with 311 additions and 1988 deletions
18
tests/Feature/Service/Config/AppNameTest.php
Normal file
18
tests/Feature/Service/Config/AppNameTest.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
use App\Enum\SystemSettingKey;
|
||||
use App\Service\Config\AppName;
|
||||
use App\Service\ConfigurationService;
|
||||
|
||||
test('it returns the system name from configuration service', function () {
|
||||
|
||||
/** @var ConfigurationService $configService */
|
||||
$configService = $this->getContainer()->get(ConfigurationService::class);
|
||||
$appName = new AppName($configService);
|
||||
expect((string)$appName)->toBe(SystemSettingKey::SYSTEM_NAME->defaultValue());
|
||||
|
||||
$expected = 'Test System Name';
|
||||
$configService->set(SystemSettingKey::SYSTEM_NAME, $expected);
|
||||
expect((string)$appName)->toBe($expected);
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue