Wire admin studio SSR and search infrastructure

This commit is contained in:
2026-05-01 11:46:06 +02:00
parent 257b0dbef6
commit 18cea8b0f0
329 changed files with 197465 additions and 2741 deletions

View File

@@ -30,4 +30,14 @@ it('normalizes JSON string structured data schemas', function () {
->toHaveCount(1)
->and($seo['json_ld'][0]['@context'] ?? null)->toBe('https://schema.org')
->and($seo['json_ld'][0]['@type'] ?? null)->toBe('CollectionPage');
});
it('normalizes canonical page urls to the configured public app domain', function () {
config()->set('app.url', 'https://skinbase.org');
$seo = SeoDataBuilder::fromArray([
'canonical' => 'https://thumb.skinbase.top/search?q=winstep',
])->build()->toArray();
expect($seo['canonical'] ?? null)->toBe('https://skinbase.org/search?q=winstep');
});