Fix: testy + bugfix SettingsRepository::allSettings() + migracja phpunit.xml

- SettingsRepository::allSettings() — inicjalizacja $settings = [] przed pętlą
  (bug: false ?? [] zwracało false gdy cache pusty a DB null)
- Stuby wydzielone do tests/stubs/CacheHandler.php + S.php
- phpunit.xml zmigurowany do schematu PHPUnit 10 (coverage → source)
- composer.lock dodany do repozytorium

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 23:56:00 +01:00
parent 8e6b29976c
commit 2e715e803e
7 changed files with 1741 additions and 56 deletions

View File

@@ -47,7 +47,7 @@ class SettingsRepositoryTest extends TestCase
$db = $this->mockDb();
$db->expects($this->never())->method('select');
\CacheHandlerStub::store('settings_details', ['cached' => '1']);
\Shared\Cache\CacheHandler::store('settings_details', ['cached' => '1']);
$repo = new SettingsRepository($db);
$result = $repo->allSettings();