public function MetatagTagsTestBase::testFrontPage in Metatag 7
Confirm that it's possible to load the front page.
This is a simple test to confirm the site didn't blow up when this module was enabled. It's particularly useful when this test is extended on submodules.
File
- tests/
MetatagTagsTestBase.test, line 60 - Base class for testing a module's custom tags.
Class
- MetatagTagsTestBase
- Base class for testing a module's custom tags.
Code
public function testFrontPage() {
// Load the front page.
$this
->drupalGet('<front>');
$this
->assertResponse(200);
// Confirm the page is correct.
$this
->assertText(t('No front page content has been created yet.'));
}