protected function MetaInformationTest::setMetaTagConfigurationForUrl in Thunder 8.4
Same name and namespace in other branches
- 8.5 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()
- 8.2 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()
- 8.3 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()
- 6.2.x tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()
- 6.0.x tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::setMetaTagConfigurationForUrl()
- 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\FunctionalJavascriptCode
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();
}