You are here

protected function UiAdminTest::setUp in Editor Advanced Image 8

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/UiAdminTest.php \Drupal\Tests\editor_advanced_image\FunctionalJavascript\UiAdminTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/UiAdminTest.php, line 42

Class

UiAdminTest
Tests ckeditor formats admin forms.

Namespace

Drupal\Tests\editor_advanced_image\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();

  // Create text format.
  $full_html_format = FilterFormat::create([
    'format' => 'full_html',
    'name' => 'Full HTML',
    'weight' => 0,
    'filters' => [],
  ]);
  $full_html_format
    ->save();

  // Create a user for tests.
  $admin = $this
    ->drupalCreateUser([
    'administer filters',
  ]);
  $this
    ->drupalLogin($admin);
}