You are here

public function ProcessorConfigFormTest::testFieldExistence in Purge 8.3

Verify that the form contains all fields we require.

File

tests/modules/purge_processor_test/tests/src/Functional/ProcessorConfigFormTest.php, line 38

Class

ProcessorConfigFormTest
Tests \Drupal\purge_processor_test\Form\ProcessorConfigForm.

Namespace

Drupal\Tests\purge_processor_test\Functional

Code

public function testFieldExistence() : void {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getPath());
  $this
    ->assertSession()
    ->fieldExists('edit-textfield');
  $this
    ->assertSession()
    ->pageTextContains("Test");
}