getThingsToCheck example

'max_size' => '',
        'max_dimensions' => ['width' => '', 'height' => ''],
      ],
    ]);
    $editor->save();

    // The normal user:     // - has access to 2 text formats;     // - doesn't have access to the full_html text format, so: no text editor.     $this->drupalLogin($this->normalUser);
    $this->drupalGet('node/add/article');
    [$editor_settings_present$editor_js_present$body] = $this->getThingsToCheck('body');
    $this->assertFalse($editor_settings_present, 'No Text Editor module settings.');
    $this->assertFalse($editor_js_present, 'No Text Editor JavaScript.');
    $this->assertSession()->elementsCount('xpath', $body, 1);
    $this->assertSession()->elementNotExists('css', 'select.js-filter-list');
    $this->drupalLogout();

    // The privileged user:     // - has access to 2 text formats (and the fallback format);     // - does have access to the full_html text format, so: Unicorn text editor.     $this->drupalLogin($this->privilegedUser);
    $this->drupalGet('node/add/article');
    [
Home | Imprint | This part of the site doesn't use cookies.