You are here

public function MetatagContextTest::testFrontPage in Metatag 7

Test handling the front page.

File

metatag_context/tests/MetatagContextTest.test, line 79
Functional tests for the Metatag:Context module.

Class

MetatagContextTest
Functional tests for the Metatag:Context module.

Code

public function testFrontPage() {

  // Generate metatags and check content.
  $test_object = $this
    ->createTestObject('frontpage_metatags', '<front>');
  $this
    ->generateByPathConfig($test_object);
  $this
    ->editByPathConfig($test_object);
  $this
    ->checkByPathConfig($test_object);

  // Edit metatag and check content.
  $test_object->title = 'A different title';
  $test_object->description = '';
  $this
    ->editByPathConfig($test_object);
  $this
    ->checkByPathConfig($test_object);
}