You are here

public function FortyTwoAdminToolbarTest::testFortyTwoAdminToolbar in FortyTwo - Administration toolbar 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/FortyTwoAdminToolbarTest.php \Drupal\Tests\fortytwo_admin_toolbar\Functional\FortyTwoAdminToolbarTest::testFortyTwoAdminToolbar()

File

tests/src/Functional/FortyTwoAdminToolbarTest.php, line 43

Class

FortyTwoAdminToolbarTest
Tests Fortytwo Admin Toolbar functionality.

Namespace

Drupal\Tests\fortytwo_admin_toolbar\Functional

Code

public function testFortyTwoAdminToolbar() {

  // Get the toolbar test page.
  $this
    ->drupalGet('test-page');
  $this
    ->assertSession()
    ->statusCodeEquals(200);

  // Assert that the fortytwo_admin_toolbar is present in the HTML.
  $this
    ->assertSession()
    ->responseContains('class="fortytwo-admin-toolbar');
}