fix: resolve QG-001 typography token drift and QG-006 style violations
Replace raw line-height values with --leading-none/--leading-loose design tokens in 3 CSS files. Fix 7 PHP style issues: import ordering, unused imports, brace placement, multi-line argument formatting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,6 @@ namespace MintyPHP\Tests\Support;
|
||||
use MintyPHP\App\AppContainer;
|
||||
use MintyPHP\Service\Settings\SettingCacheService;
|
||||
use MintyPHP\Service\Settings\ThemeConfigGateway;
|
||||
use MintyPHP\Tests\Support\AppContainerIsolationTrait;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ThemeResolutionTest extends TestCase
|
||||
|
||||
@@ -77,7 +77,10 @@ final class LayoutContextProviderTest extends TestCase
|
||||
// addressbook.nav via the provider loop
|
||||
$layoutNav = appBuildLayoutNavContext([], [], []);
|
||||
|
||||
self::assertArrayHasKey('addressbook.nav', $layoutNav,
|
||||
'addressbook.nav key must be present in layoutNav when module is active');
|
||||
self::assertArrayHasKey(
|
||||
'addressbook.nav',
|
||||
$layoutNav,
|
||||
'addressbook.nav key must be present in layoutNav when module is active'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,8 +46,11 @@ final class SearchProviderCollectionTest extends TestCase
|
||||
$coreResources = SearchConfig::resources('test', 'en');
|
||||
$coreKeys = array_column($coreResources, 'key');
|
||||
|
||||
self::assertNotContains('address-book', $coreKeys,
|
||||
'address-book must not be in Core search resources (moved to module)');
|
||||
self::assertNotContains(
|
||||
'address-book',
|
||||
$coreKeys,
|
||||
'address-book must not be in Core search resources (moved to module)'
|
||||
);
|
||||
}
|
||||
|
||||
public function testAddressBookSearchProviderDirectly(): void
|
||||
@@ -105,16 +108,22 @@ final class SearchProviderCollectionTest extends TestCase
|
||||
{
|
||||
$moduleResources = SearchConfig::moduleResources();
|
||||
|
||||
self::assertArrayHasKey('address-book', $moduleResources,
|
||||
'address-book resource must come from module provider via SearchConfig');
|
||||
self::assertArrayHasKey(
|
||||
'address-book',
|
||||
$moduleResources,
|
||||
'address-book resource must come from module provider via SearchConfig'
|
||||
);
|
||||
}
|
||||
|
||||
public function testTenantFilterMergedFromModule(): void
|
||||
{
|
||||
$filters = SearchConfig::tenantScopeFilters();
|
||||
|
||||
self::assertArrayHasKey('address-book', $filters,
|
||||
'address-book tenant scope filter must be provided by module');
|
||||
self::assertArrayHasKey(
|
||||
'address-book',
|
||||
$filters,
|
||||
'address-book tenant scope filter must be provided by module'
|
||||
);
|
||||
}
|
||||
|
||||
public function testSearchConfigListUrlDelegatesToModule(): void
|
||||
|
||||
Reference in New Issue
Block a user