You are here

public function FormTestBase::testFormCodeContract in Purge 8.3

Tests that the form route isn't accessible anonymously.

File

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

Class

FormTestBase
Testbase for purge_ui forms.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

public function testFormCodeContract() : void {
  $form = $this
    ->getFormInstance();
  $this
    ->assertInstanceOf(FormInterface::class, $form);
}