You are here

public function QuickEditMinimalTest::testSuccessfulInstall in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/quickedit/tests/src/Functional/QuickEditMinimalTest.php \Drupal\Tests\quickedit\Functional\QuickEditMinimalTest::testSuccessfulInstall()
  2. 10 core/modules/quickedit/tests/src/Functional/QuickEditMinimalTest.php \Drupal\Tests\quickedit\Functional\QuickEditMinimalTest::testSuccessfulInstall()

Tests that Quick Edit works with no admin theme.

See also

\quickedit_library_info_alter()

File

core/modules/quickedit/tests/src/Functional/QuickEditMinimalTest.php, line 37

Class

QuickEditMinimalTest
Tests Quick Edit can be installed with Minimal.

Namespace

Drupal\Tests\quickedit\Functional

Code

public function testSuccessfulInstall() {
  $editor_user = $this
    ->drupalCreateUser([
    'access in-place editing',
  ]);
  $this
    ->drupalLogin($editor_user);
  $this
    ->assertSame('', $this
    ->config('system.theme')
    ->get('admin'), 'There is no admin theme set on the site.');
}