diff --git a/tests/JsonLdContributorTest.php b/tests/JsonLdContributorTest.php index 613cb1d..1d35663 100644 --- a/tests/JsonLdContributorTest.php +++ b/tests/JsonLdContributorTest.php @@ -24,6 +24,7 @@ public function test_an_entry_is_an_article(): void 'https://example.test/posts/hello', 'Hello World', 'My Site', + 'AAAAAAAAAAAAAAAAAAAAAA==', ['title' => 'Hello World', 'published_at' => '2026-08-01T09:00:00+00:00'], ); @@ -39,7 +40,7 @@ public function test_an_entry_is_an_article(): void public function test_the_home_page_is_a_website(): void { - $html = $this->contributor->head(new PageContext('home', 'https://example.test/', 'Home', 'My Site')); + $html = $this->contributor->head(new PageContext('home', 'https://example.test/', 'Home', 'My Site', 'AAAAAAAAAAAAAAAAAAAAAA==')); self::assertStringContainsString('"@type":"WebSite"', $html); self::assertStringContainsString('"name":"My Site"', $html); @@ -48,7 +49,7 @@ public function test_the_home_page_is_a_website(): void public function test_a_collection_page_is_a_collection_page(): void { - $html = $this->contributor->head(new PageContext('collection', 'https://example.test/posts', 'Posts', 'My Site')); + $html = $this->contributor->head(new PageContext('collection', 'https://example.test/posts', 'Posts', 'My Site', 'AAAAAAAAAAAAAAAAAAAAAA==')); self::assertStringContainsString('"@type":"CollectionPage"', $html); self::assertStringContainsString('"name":"Posts"', $html); @@ -56,7 +57,7 @@ public function test_a_collection_page_is_a_collection_page(): void public function test_a_missing_publish_time_is_omitted(): void { - $page = new PageContext('entry', 'https://example.test/posts/x', 'X', 'My Site', ['title' => 'X']); + $page = new PageContext('entry', 'https://example.test/posts/x', 'X', 'My Site', 'AAAAAAAAAAAAAAAAAAAAAA==', ['title' => 'X']); self::assertStringNotContainsString('datePublished', $this->contributor->head($page)); } @@ -68,6 +69,7 @@ public function test_it_cannot_break_out_of_the_script_element(): void 'https://example.test/x', 'Pwned', 'My Site', + 'AAAAAAAAAAAAAAAAAAAAAA==', ['title' => 'x'], ); @@ -83,6 +85,6 @@ public function test_it_cannot_break_out_of_the_script_element(): void public function test_an_unknown_page_kind_contributes_nothing(): void { - self::assertSame('', $this->contributor->head(new PageContext('mystery', 'https://example.test/', 'X', 'S'))); + self::assertSame('', $this->contributor->head(new PageContext('mystery', 'https://example.test/', 'X', 'S', 'AAAAAAAAAAAAAAAAAAAAAA=='))); } } diff --git a/tests/PackageIntegrationTest.php b/tests/PackageIntegrationTest.php index 9d86809..7275e5f 100644 --- a/tests/PackageIntegrationTest.php +++ b/tests/PackageIntegrationTest.php @@ -65,7 +65,7 @@ private function installedAs(): string private function home(): PageContext { - return new PageContext('home', 'https://example.test/', 'Home', 'My Site'); + return new PageContext('home', 'https://example.test/', 'Home', 'My Site', 'AAAAAAAAAAAAAAAAAAAAAA=='); } // ------------------------------------------------------- the manifest