You are here

public function MetatagIntegrationTest::testHookMetatagsAttachmentsAlter in Metatag 8

Tests hook_metatags_attachments_alter() and title altering.

See also

metatag_test_integration_metatags_attachments_alter()

File

tests/src/Functional/MetatagIntegrationTest.php, line 35

Class

MetatagIntegrationTest
Ensures that the Metatag hook_metatags_attachments_alter() works.

Namespace

Drupal\Tests\metatag\Functional

Code

public function testHookMetatagsAttachmentsAlter() {

  // Get the front page and assert the page title.
  $this
    ->drupalGet('');
  $this
    ->assertSession()
    ->titleEquals('This is the title I want | Drupal | Yeah!');
}