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
Namespace
Drupal\Tests\purge_ui\Functional\FormCode
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!');
}