public function TaxonomyManagerPagesTest::testTermsEditingPageIsAccessible in Taxonomy Manager 8
Same name and namespace in other branches
- 2.0.x src/Tests/TaxonomyManagerPagesTest.php \Drupal\taxonomy_manager\Tests\TaxonomyManagerPagesTest::testTermsEditingPageIsAccessible()
The page with term editing UI is accessible.
File
- src/
Tests/ TaxonomyManagerPagesTest.php, line 76
Class
- TaxonomyManagerPagesTest
- All pages of the module are accessible. (Routing and menus are OK)
Namespace
Drupal\taxonomy_manager\TestsCode
public function testTermsEditingPageIsAccessible() {
$this
->drupalLogin($this->adminUser);
$voc_name = $this->vocabulary
->label();
// Check admin/structure/taxonomy_manager/voc/{$new_voc_name}.
$this
->drupalGet("admin/structure/taxonomy_manager/voc/{$voc_name}");
$this
->assertResponse(200);
$this
->assertRaw("Taxonomy Manager - {$voc_name}", "The taxonomy manager form for editing terms is accessible.");
$this
->drupalLogout();
}