Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
XML Sitemap Unit Tests #29
The last few failed tests relate to the regenerate flag during a cron run: Issue #32.
However, testSaveLink() includes a lot of failures also related to the regenerate flag not being reset. The curious thing is that if you place an assertion before the first link is saved,
the first assertion passes but the second assertion fails. Leaving the test as it was...
causes the assertion after the link is saved to pass. Wahht? How can asserting if a variable is set to TRUE interfere with the second assertion?
This makes me think something is screwy with accessing variables during tests runs...or the process after a link is saved takes too long for the assertion to pass...don't understand it.
The good news is that while manually testing adding a page, unpublishing, and republishing it, the sitemap is set to be regenerated.