You are here

public function QueueBrowserFormTest::testPresence in Purge 8.3

Tests basic expectations of the form.

File

modules/purge_ui/tests/src/Functional/Form/QueueBrowserFormTest.php, line 59

Class

QueueBrowserFormTest
Tests \Drupal\purge_ui\Form\QueueBrowserForm.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

public function testPresence() : void {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getPath());
  $this
    ->assertSession()
    ->titleEquals("Purge queue browser | Drupal");
  $this
    ->assertSession()
    ->pageTextContains("Your queue is empty.");
  $this
    ->assertSession()
    ->fieldNotExists('edit-1');
}