protected function ParagraphsLangcodeChangeTest::doTestLangcodeChange

Performs the test run with the given options.

Parameters

array $widget_options: The paragraph widget options.

bool $embedded: (Optional) Whether the embedded form should be used or not.

4 calls to ParagraphsLangcodeChangeTest::doTestLangcodeChange()
ParagraphsLangcodeChangeTest::testChangeWithEmbeddedLegacyWidget in paragraphs/tests/src/Kernel/ParagraphsLangcodeChangeTest.php
Tests langcode change within an embedded node form and the legacy widget.
ParagraphsLangcodeChangeTest::testChangeWithEmbeddedStableWidget in paragraphs/tests/src/Kernel/ParagraphsLangcodeChangeTest.php
Tests langcode change within an embedded node form and the stable widget.
ParagraphsLangcodeChangeTest::testChangeWithLegacyWidget in paragraphs/tests/src/Kernel/ParagraphsLangcodeChangeTest.php
Tests the langcode change within a node form using the legacy widget.
ParagraphsLangcodeChangeTest::testChangeWithStableWidget in paragraphs/tests/src/Kernel/ParagraphsLangcodeChangeTest.php
Tests the langcode change within a node form using the stable widget.

File

paragraphs/tests/src/Kernel/ParagraphsLangcodeChangeTest.php, line 282

Class

ParagraphsLangcodeChangeTest
Tests the langcode change mechanics of paragraphs.

Namespace

Drupal\Tests\paragraphs\Kernel

Code

protected function doTestLangcodeChange(array $widget_options, $embedded = FALSE) {
  $this->formDisplay
    ->setComponent($this->nodeParagraphsFieldName, $widget_options)
    ->save();
  $this
    ->doTestChangeWithinNodeForm($embedded);
}