You are here

public function AdminFunctionalityTest::testSynonymsAdmin in Synonyms 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/AdminFunctionalityTest.php \Drupal\Tests\synonyms\Functional\AdminFunctionalityTest::testSynonymsAdmin()

Make sure the main admin page loads correctly.

File

tests/src/Functional/AdminFunctionalityTest.php, line 52

Class

AdminFunctionalityTest
Checks if admin functionality works correctly.

Namespace

Drupal\Tests\synonyms\Functional

Code

public function testSynonymsAdmin() {

  // Load the main admin page.
  $this
    ->drupalGet('admin/structure/synonyms');
  $session = $this
    ->assertSession();
  $session
    ->statusCodeEquals(200);
  $session
    ->pageTextContains('Synonyms');
  $session
    ->pageTextContains('ENTITY TYPE');
  $session
    ->pageTextContains('BUNDLE');
  $session
    ->pageTextContains('MANAGE');
  $session
    ->pageTextContains('User');
  $session
    ->pageTextContains('Autocomplete');
  $session
    ->pageTextContains('Select');
  $session
    ->pageTextContains('Search');
}