You are here

protected function FilterFormTest::assertEnabledTextarea in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/filter/tests/src/Functional/FilterFormTest.php \Drupal\Tests\filter\Functional\FilterFormTest::assertEnabledTextarea()
  2. 10 core/modules/filter/tests/src/Functional/FilterFormTest.php \Drupal\Tests\filter\Functional\FilterFormTest::assertEnabledTextarea()

Asserts that a textarea with a given ID exists and is not disabled.

Parameters

string $id: The HTML ID of the textarea.

Return value

bool TRUE if the assertion passed; FALSE otherwise.

2 calls to FilterFormTest::assertEnabledTextarea()
FilterFormTest::doFilterFormTestAsAdmin in core/modules/filter/tests/src/Functional/FilterFormTest.php
Tests the behavior of the 'text_format' element as an administrator.
FilterFormTest::doFilterFormTestAsNonAdmin in core/modules/filter/tests/src/Functional/FilterFormTest.php
Tests the behavior of the 'text_format' element as a normal user.

File

core/modules/filter/tests/src/Functional/FilterFormTest.php, line 236

Class

FilterFormTest
Tests form elements with associated text formats.

Namespace

Drupal\Tests\filter\Functional

Code

protected function assertEnabledTextarea($id) {
  $textarea = $this
    ->assertSession()
    ->fieldEnabled($id);
  $this
    ->assertSame('textarea', $textarea
    ->getTagName());
}