TextareaTest.php
Same filename in this branch
Same filename and directory in other branches
- 11.x core/modules/system/tests/src/Functional/Form/TextareaTest.php
- 11.x core/tests/Drupal/Tests/Core/Render/Element/TextareaTest.php
- 10 core/tests/Drupal/Tests/Core/Render/Element/TextareaTest.php
- 9 core/tests/Drupal/Tests/Core/Render/Element/TextareaTest.php
- 8.9.x core/tests/Drupal/Tests/Core/Render/Element/TextareaTest.php
Namespace
Drupal\Tests\system\Functional\FormFile
-
core/
modules/ system/ tests/ src/ Functional/ Form/ TextareaTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\system\Functional\Form;
use Drupal\Tests\BrowserTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
/**
* Tests the form API textarea element.
*/
class TextareaTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'form_test',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Tests the textarea element #resizable property.
*/
public function testFormTextareaResizable() : void {
$this->drupalGet('form-test/textarea');
$this->assertNotEmpty($this->cssSelect('#edit-textarea-resizable-vertical.resize-vertical'));
$this->assertNotEmpty($this->cssSelect('#edit-textarea-resizable-horizontal.resize-horizontal'));
$this->assertNotEmpty($this->cssSelect('#edit-textarea-resizable-both.resize-both'));
$this->assertNotEmpty($this->cssSelect('#edit-textarea-resizable-none.resize-none'));
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| TextareaTest | Tests the form API textarea element. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.