You are here

function TagadelicAdminTest::testAllVocabulariesLoaded in Tagadelic 8.3

Test all vocabularies appear on admin page.

File

src/Tests/TagadelicAdminTest.php, line 92

Class

TagadelicAdminTest
Tests for displaying tagadelic page.

Namespace

Drupal\tagadelic\Tests

Code

function testAllVocabulariesLoaded() {
  $this
    ->drupalGet('admin/structure/tagadelic');
  $this
    ->assertResponse(200);
  $this
    ->assertRaw('Tag Cloud');
  foreach ($this->vocabularies as $vocabulary) {
    $this
      ->assertRaw($vocabulary
      ->get('name'));
  }
}