public function WysiwygLinebreaksConfigTest::testBasicHtmlTextFormatsConfigForm in Wysiwyg Linebreaks 8
Test the text formats form.
File
- src/
Tests/ WysiwygLinebreaksConfigTest.php, line 56
Class
- WysiwygLinebreaksConfigTest
- Test the functionality of the Wysiwyg Linebreaks module for an admin user.
Namespace
Drupal\wysiwyg_linebreaks\TestsCode
public function testBasicHtmlTextFormatsConfigForm() {
// Log in the admin user.
$this
->drupalLogin($this->adminUser);
// Get the comment reply form and ensure there's no 'url' field.
$this
->drupalGet('admin/config/content/formats/manage/basic_html');
$this
->assertText('Force linebreaks', 'Force linebreaks conversion method shown.');
$this
->assertText('Convert linebreaks', 'Convert linebreaks conversion method shown.');
}