From 5a6a5634b3a96beedcdf6ade0dd2868e3e2ba3ec Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Sun, 17 Dec 2023 20:22:53 -0500 Subject: [PATCH] add: L2 page to test content --- tests/SiteMapTest.php | 6 +++--- tests/test-content/public/l1-page/l2-page/meta.json | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 tests/test-content/public/l1-page/l2-page/meta.json 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 +}