public function UiAdminTest::testAdminForm in Editor Advanced Image 8
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/UiAdminTest.php \Drupal\Tests\editor_advanced_image\FunctionalJavascript\UiAdminTest::testAdminForm()
Tests a CKEditor editor and visibilit of Editor Advanced Image config.
File
- tests/
src/ FunctionalJavascript/ UiAdminTest.php, line 71
Class
- UiAdminTest
- Tests ckeditor formats admin forms.
Namespace
Drupal\Tests\editor_advanced_image\FunctionalJavascriptCode
public function testAdminForm() {
$this
->drupalGet('admin/config/content/formats/manage/full_html');
// Select the "CKEditor" editor.
$this
->fillField('Text editor', 'ckeditor');
// Wait on CKEditor Ajax call to load plugins forms.
$this
->assertSession()
->assertWaitOnAjaxRequest();
// Check the Editor Advanced Image tab is visible.
$this
->assertElementPresent('.vertical-tabs');
// Ensure the default class is initialized to the expected default value.
$this
->assertFieldByName('editor[settings][plugins][editoradvancedimage][default_class]', '');
}