protected function MetaInformationTest::createArticleWithFields in Thunder 6.2.x
Same name and namespace in other branches
- 8.5 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
- 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.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 = []) {
$term = $this
->loadTermByUuid('bfc251bc-de35-467d-af44-1f7a7012b845');
$fieldValues += [
'field_channel' => $term
->id(),
'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);
$media = $this
->loadMediaByUuid('17965877-27b2-428f-8b8c-7dccba9786e5');
$this
->selectMedia('field_teaser_media', 'image_browser', [
'media:' . $media
->id(),
]);
$this
->clickSave();
}