You are here

public function QueueEmptyFormTest::testPresence in Purge 8.3

Tests basic expectations of the form.

File

modules/purge_ui/tests/src/Functional/Form/QueueEmptyFormTest.php, line 57

Class

QueueEmptyFormTest
Tests \Drupal\purge_ui\Form\QueueEmptyForm.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

public function testPresence() : void {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getPath());
  $this
    ->assertSession()
    ->titleEquals("Are you sure you want to empty the queue? | Drupal");
  $this
    ->assertSession()
    ->pageTextContains("This action cannot be undone.");
  $this
    ->assertSession()
    ->pageTextContains('Yes, throw everything away!');
}