backdrop-contrib / xmlsitemap

Provides a sitemap that conforms to the sitemaps.org specification.
GNU General Public License v2.0
1 stars 12 forks source link

XML Sitemap Engines Failing Tests #26

Closed alexfinnarn closed 7 years ago

alexfinnarn commented 7 years ago

All failures in xmlsitemap_engines.test

76 passes, 22 fails, 0 exceptions, and 20 debug messages

alexfinnarn commented 7 years ago

The majority of failing tests were related to having the "xmlsitemap" prefix on variables, but the one mindblowing test I can't figure out is the "submitEngines()" function.

The "engines_submit_last" variable is set to 10,000 seconds before the request, and then "xmlsitemap_engines_cron()" is supposed to reset that variable to make the assertion true. The test gets to place where the variable is reset in "xmlsitemap_engines_submit_engines()", but the assertion still fails. Setting the variable in the same manner after "xmlsitemap_engines_cron()" is run allows the test to pass. I don't understand why this is...