protected function MetaInformationTest::createArticleWithFields in Thunder 8.5
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
- 8.3 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
- 8.4 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
- 6.2.x tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
- 6.0.x tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
- 6.1.x tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
Create simple article for meta tag testing.
Parameters
array $fieldValues: Custom meta tag configuration for article.
3 calls to MetaInformationTest::createArticleWithFields()
- MetaInformationTest::testArticleMetaTags in tests/
src/ FunctionalJavascript/ MetaInformationTest.php - Test Meta Tag default configuration and custom configuration for article.
- MetaInformationTest::testArticleScheduling in tests/
src/ FunctionalJavascript/ MetaInformationTest.php - Test Scheduling of Article.
- MetaInformationTest::testSiteMap in tests/
src/ FunctionalJavascript/ MetaInformationTest.php - Test Site Map for Article.
File
- tests/
src/ FunctionalJavascript/ MetaInformationTest.php, line 138
Class
- MetaInformationTest
- Testing of Meta Information.
Namespace
Drupal\Tests\thunder\FunctionalJavascriptCode
protected function createArticleWithFields(array $fieldValues = []) {
$fieldValues += [
'field_channel' => 1,
'title[0][value]' => static::$tokens['[node:title]'],
'field_seo_title[0][value]' => static::$tokens['[node:field_seo_title]'],
'field_teaser_text[0][value]' => static::$tokens['[node:field_teaser_text]'],
];
$this
->articleFillNew($fieldValues);
$this
->selectMedia('field_teaser_media', 'image_browser', [
'media:1',
]);
$this
->clickSave();
}