You are here

public function PurgerConfigFormTest::testFieldExistence in Purge 8.3

Verify that the form contains all fields we require.

File

tests/modules/purge_purger_test/tests/src/Functional/PurgerConfigFormTest.php, line 38

Class

PurgerConfigFormTest
Tests \Drupal\purge_purger_test\Form\PurgerConfigForm.

Namespace

Drupal\Tests\purge_purger_test\Functional

Code

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