You are here

public function TaxonomyManagerPagesTest::testVocabulariesListIsAccessible in Taxonomy Manager 2.0.x

Same name and namespace in other branches
  1. 8 src/Tests/TaxonomyManagerPagesTest.php \Drupal\taxonomy_manager\Tests\TaxonomyManagerPagesTest::testVocabulariesListIsAccessible()

The page listing vocabularies is accessible.

File

src/Tests/TaxonomyManagerPagesTest.php, line 61

Class

TaxonomyManagerPagesTest
All pages of the module are accessible. (Routing and menus are OK)

Namespace

Drupal\taxonomy_manager\Tests

Code

public function testVocabulariesListIsAccessible() {
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalGet("admin/structure");
  $this
    ->assertResponse(200);
  $this
    ->assertRaw("Administer vocabularies with the Taxonomy Manager", "The link to the page listing vocabularies is accessible.");
  $this
    ->drupalGet("admin/structure/taxonomy_manager/voc");
  $this
    ->assertResponse(200);
  $this
    ->assertRaw("Edit vocabulary settings", "The page listing vocabularies is accessible.");
  $this
    ->drupalLogout();
}