You are here

public function ModalPageSettingsFormTest::submitForm in Modal 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/Form/ModalPageSettingsFormTest.php \Drupal\Tests\modal_page\Kernel\Form\ModalPageSettingsFormTest::submitForm()

Test submit form.

1 call to ModalPageSettingsFormTest::submitForm()
ModalPageSettingsFormTest::setUp in tests/src/Kernel/Form/ModalPageSettingsFormTest.php

File

tests/src/Kernel/Form/ModalPageSettingsFormTest.php, line 85

Class

ModalPageSettingsFormTest
Kernel tests for ModalPageSettingsForm.

Namespace

Drupal\Tests\modal_page\Kernel\Form

Code

public function submitForm() {
  $formState = $this
    ->getFormState();
  $form = $this->modalPageSettingsForm
    ->buildForm([], $formState);
  $this->modalPageSettingsForm
    ->submitForm($form, $formState);
}