You are here

protected function MetaInformationTest::createArticleWithFields in Thunder 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
  2. 8.2 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
  3. 8.3 tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
  4. 6.2.x tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
  5. 6.0.x tests/src/FunctionalJavascript/MetaInformationTest.php \Drupal\Tests\thunder\FunctionalJavascript\MetaInformationTest::createArticleWithFields()
  6. 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\FunctionalJavascript

Code

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();
}