You are here

protected function TextFormatConfigurationTest::setUp in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 modules/video_embed_wysiwyg/tests/src/Functional/TextFormatConfigurationTest.php \Drupal\Tests\video_embed_wysiwyg\Functional\TextFormatConfigurationTest::setUp()

Overrides BrowserTestBase::setUp

File

modules/video_embed_wysiwyg/tests/src/Functional/TextFormatConfigurationTest.php, line 40

Class

TextFormatConfigurationTest
Test the format configuration form.

Namespace

Drupal\Tests\video_embed_wysiwyg\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalLogin($this
    ->createAdminUser());
  $this
    ->drupalGet($this->formatUrl);

  // Setup the filter to have an editor.
  $this
    ->getSession()
    ->getPage()
    ->find('css', '[name="editor[editor]"]')
    ->setValue('ckeditor');
  $this
    ->getSession()
    ->getPage()
    ->find('css', 'input[name="editor_configure"]')
    ->click();
  $this
    ->submitForm([], t('Save configuration'));
}