public function ModalPageTest::testAllowTags in Modal 8.2
Same name and namespace in other branches
- 8.3 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\UnitCode
public function testAllowTags() {
$this
->assertCount(24, $this->modalPage
->getAllowTags());
$this
->assertContains('h2', $this->modalPage
->getAllowTags());
}