You are here

public function ModalPageTest::testAllowTags in Modal 8.3

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/ModalPageTest.php \Drupal\Tests\modal_page\Unit\ModalPageTest::testAllowTags()

Test ModalPage::getAllowTags().

File

tests/src/Unit/ModalPageTest.php, line 60

Class

ModalPageTest
Tests for ModalPage class.

Namespace

Drupal\Tests\modal_page\Unit

Code

public function testAllowTags() {
  $this
    ->assertCount(24, $this->modalPage
    ->getAllowTags());
  $this
    ->assertContains('h2', $this->modalPage
    ->getAllowTags());
}