public function ThunderParagraphsTestTrait::addVideoParagraph in Thunder 6.1.x
Same name and namespace in other branches
- 8.5 tests/src/FunctionalJavascript/ThunderParagraphsTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderParagraphsTestTrait::addVideoParagraph()
- 8.2 tests/src/FunctionalJavascript/ThunderParagraphsTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderParagraphsTestTrait::addVideoParagraph()
- 8.3 tests/src/FunctionalJavascript/ThunderParagraphsTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderParagraphsTestTrait::addVideoParagraph()
- 8.4 tests/src/FunctionalJavascript/ThunderParagraphsTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderParagraphsTestTrait::addVideoParagraph()
- 6.2.x tests/src/FunctionalJavascript/ThunderParagraphsTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderParagraphsTestTrait::addVideoParagraph()
- 6.0.x tests/src/FunctionalJavascript/ThunderParagraphsTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderParagraphsTestTrait::addVideoParagraph()
Add Video paragraph.
Parameters
string $fieldName: Field name.
array $media: List of media identifiers.
int $position: Position of the paragraph.
1 call to ThunderParagraphsTestTrait::addVideoParagraph()
- ArticleCreationTest::testCreateArticle in tests/
src/ FunctionalJavascript/ ArticleCreationTest.php - Test Creation of Article.
File
- tests/
src/ FunctionalJavascript/ ThunderParagraphsTestTrait.php, line 151
Class
- ThunderParagraphsTestTrait
- Trait for handling of Paragraph related test actions.
Namespace
Drupal\Tests\thunder\FunctionalJavascriptCode
public function addVideoParagraph($fieldName, array $media, $position = NULL) {
$paragraphIndex = $this
->addParagraph($fieldName, 'video', $position);
$this
->selectMedia("{$fieldName}_{$paragraphIndex}_subform_field_video", 'video_browser', $media);
}