You are here

public function FormTestBase::testRouteTitle in Purge 8.3

Assert that the title is present.

File

modules/purge_ui/tests/src/Functional/Form/FormTestBase.php, line 270

Class

FormTestBase
Testbase for purge_ui forms.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

public function testRouteTitle() : void {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet($this
    ->getPath());
  $this
    ->assertSame($this->routeTitle . ' | Drupal', $this
    ->getSession()
    ->getPage()
    ->find('css', 'title')
    ->getText());
}