Closed (fixed)
Project:
Simple XML sitemap
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2020 at 15:13 UTC
Updated:
11 Mar 2025 at 09:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gbyteComment #3
gbyteAfter installing the config and schema of simple_sitemap and running the generation process, the test fails apparently because \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\CustomUrlGenerator::processDataSet calls \Drupal\Core\Path\PathValidator::getUrlIfValidWithoutAccessCheck which returns false for the custom '/' URL in the kernel test environment. Not sure what has to be mocked/added for the path validator to work.
Comment #4
mluzitano commentedI'm adding this patch because, while it doesn't directly resolve the issue with CustomUrlGenerator that you've listed above, it did prevent other unit tests from running locally, and I'm guessing it will be essential to fully resolving this issue. Essentially, last_submitted comes up in PHPUnit tests because it's not defined in the schema.yml file, since it looks to have been converted from configuration to a State.
Comment #5
gbyte@mluzitano
Good point! I don't see the connection to this issue, so I created a new one: #3215552: Remove last_submitted config reference from simple_sitemap_engine entity.
Comment #6
gbyteComment #10
walkingdexter commentedComment #12
gbyteThis is awesome! However I feel like the sitemap ping functionality is being deprecated and we need to focus on IndexNow: #3512165: Create tests for simple_sitemap_engines (IndexNow)