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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user