You are here

protected function MetaInformationTest::setMetaTagConfigurationForUrl in Thunder 8.3

Same name and namespace in other branches
  1. 8.5 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()
  2. 8.2 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()
  3. 8.4 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()
  4. 6.2.x tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()
  5. 6.0.x tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()
  6. 6.1.x tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()

Set meta tag configuration for administration url.

Parameters

string $pageUrl: Url to page where configuration should be set.

array $configuration: List of configuration what will be set for meta tag.

1 call to MetaInformationTest::setMetaTagConfigurationForUrl()
MetaInformationTest::testArticleMetaTags in tests/src/FunctionalJavascript/MetaInformationTest.php
Test Meta Tag default configuration and custom configuration for article.

File

tests/src/FunctionalJavascript/MetaInformationTest.php, line 121

Class

MetaInformationTest
Testing of Meta Information.

Namespace

Drupal\Tests\thunder\FunctionalJavascript

Code

protected function setMetaTagConfigurationForUrl($pageUrl, array $configuration) {
  $this
    ->drupalGet($pageUrl);
  $page = $this
    ->getSession()
    ->getPage();
  $this
    ->expandAllTabs();
  $this
    ->setFieldValues($page, $this
    ->generateMetaTagFieldValues($configuration));
  $this
    ->scrollElementInView('[name="op"]');
  $page
    ->find('xpath', '//input[@name="op"]')
    ->click();
}