You are here

protected function ModalPageSettingsFormTest::setUp in Modal 8.3

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

Overrides KernelTestBase::setUp

File

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

Class

ModalPageSettingsFormTest
Kernel tests for ModalPageSettingsForm.

Namespace

Drupal\Tests\modal_page\Kernel\Form

Code

protected function setUp() {
  parent::setUp();
  $this->modalPageConfig = $this->container
    ->get('config.factory')
    ->get('modal_page_admin_settings.settings');
  $this->modalPageSettingsForm = ModalPageSettingsForm::create($this->container);
  $this
    ->submitForm();
}