We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the best way to assert "static" pages/assets - stuff like robots.txt or favicon.ico or sitemap.xml?
robots.txt
favicon.ico
sitemap.xml
I'm doing it this way in an acceptance test with REST module enabled:
public function tryRobotsTxt(AcceptanceTester $I) { $I->sendGET('/robots.txt'); $I->seeResponseCodeIs(200); $I->seeHttpHeader('Content-Type', 'text/plain'); $I->seeResponseContains('http://www.robotstxt.org/'); $I->seeResponseContains('Sitemap:'); $I->seeResponseContains('User-agent: *'); }
Rationale: Since we're talking to robots/spiders, meta data like response code or HTTP headers might be more important than on "regular" pages?
The text was updated successfully, but these errors were encountered:
I don't see anything special about testing responses of static files.
Sorry, something went wrong.
No branches or pull requests
What's the best way to assert "static" pages/assets - stuff like
robots.txt
orfavicon.ico
orsitemap.xml
?I'm doing it this way in an acceptance test with REST module enabled:
Rationale: Since we're talking to robots/spiders, meta data like response code or HTTP headers might be more important than on "regular" pages?
The text was updated successfully, but these errors were encountered: