You are here

public function WebformElementExcludedElementsTest::testExcluedElements in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/src/Functional/Element/WebformElementExcludedElementsTest.php \Drupal\Tests\webform\Functional\Element\WebformElementExcludedElementsTest::testExcluedElements()

Test excluded elements element.

File

tests/src/Functional/Element/WebformElementExcludedElementsTest.php, line 22

Class

WebformElementExcludedElementsTest
Tests for excluded elements element.

Namespace

Drupal\Tests\webform\Functional\Element

Code

public function testExcluedElements() {
  $this
    ->drupalGet('/webform/test_element_excluded_elements');

  // Check markup is not listed via '#exclude_markup': TRUE.
  $this
    ->assertNoFieldByName('webform_excluded_elements[tableselect][markup]');

  // Check markup is listed via '#exclude_markup': FALSE.
  $this
    ->assertFieldByName('webform_excluded_elements_markup[tableselect][markup]');
}