You are here

protected function FormTestBase::getFormInstance in Purge 8.3

Return a new instance of the form being tested.

Return value

\Drupal\Core\Form\FormInterface The form instance.

7 calls to FormTestBase::getFormInstance()
AjaxFormTestBase::postAjaxForm in modules/purge_ui/tests/src/Functional/Form/AjaxFormTestBase.php
Submits a ajax form through http_kernel.
FormTestBase::formInstance in modules/purge_ui/tests/src/Functional/Form/FormTestBase.php
Return the same instance of a form.
FormTestBase::testFormCodeContract in modules/purge_ui/tests/src/Functional/Form/FormTestBase.php
Tests that the form route isn't accessible anonymously.
ProcessorConfigFormTest::testFormValidation in tests/modules/purge_processor_test/tests/src/Functional/ProcessorConfigFormTest.php
Test validating the data.
PurgerConfigFormTest::testFormValidation in tests/modules/purge_purger_test/tests/src/Functional/PurgerConfigFormTest.php
Test validating the data.

... See full list

File

modules/purge_ui/tests/src/Functional/Form/FormTestBase.php, line 171

Class

FormTestBase
Testbase for purge_ui forms.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

protected function getFormInstance() : FormInterface {
  return $this->formClass::create($this->container);
}