protected function ParagraphsLangcodeChangeTest::submitNodeForm

Submits the node form, emulating the save operation as triggering element.

1 call to ParagraphsLangcodeChangeTest::submitNodeForm()
ParagraphsLangcodeChangeTest::doTestChangeWithinNodeForm in paragraphs/tests/src/Kernel/ParagraphsLangcodeChangeTest.php
Performs the test run regards the node form.

File

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

Class

ParagraphsLangcodeChangeTest
Tests the langcode change mechanics of paragraphs.

Namespace

Drupal\Tests\paragraphs\Kernel

Code

protected function submitNodeForm() {

  // Submit the form with the default save operation.
  $this->formState
    ->setValue('op', $this->formState
    ->getValue('submit'));
  $this->formBuilder
    ->submitForm($this->formObject, $this->formState);
  $this
    ->reassignEntities();
}