diff --git a/tests/SiteMapTest.php b/tests/SiteMapTest.php index 37ce3a7..2ba5314 100644 --- a/tests/SiteMapTest.php +++ b/tests/SiteMapTest.php @@ -29,7 +29,7 @@ public function can_skip_sitemap(): void $expected = << - http://ex.ample/l1-page/2023-01-011http://ex.ample/0.5 + http://ex.ample/l1-page/l2-page/2023-01-011http://ex.ample/l1-page/2023-01-011http://ex.ample/0.5 xml; $result = (string) Sitemap::create( @@ -50,7 +50,7 @@ public function can_change_default_priority(): void { $expected = << - http://ex.ample/l1-page/2023-01-011http://ex.ample/0.75 + http://ex.ample/l1-page/l2-page/2023-01-011http://ex.ample/l1-page/2023-01-011http://ex.ample/0.75 xml; $result = (string) Sitemap::create( @@ -71,7 +71,7 @@ public function is_expected_xml(): void { $expected = << - http://ex.ample/l1-page/2023-01-011http://ex.ample/0.5 + http://ex.ample/l1-page/l2-page/2023-01-011http://ex.ample/l1-page/2023-01-011http://ex.ample/0.5 xml; $result = (string) Sitemap::create( diff --git a/tests/test-content/public/l1-page/l2-page/meta.json b/tests/test-content/public/l1-page/l2-page/meta.json new file mode 100644 index 0000000..9f90a39 --- /dev/null +++ b/tests/test-content/public/l1-page/l2-page/meta.json @@ -0,0 +1,5 @@ +{ + "title": "L2 page", + "created": "20230101", + "priority": 1.0 +}