class QuickEditMinimalTest
Same name and namespace in other branches
- 8.9.x core/modules/quickedit/tests/src/Functional/QuickEditMinimalTest.php \Drupal\Tests\quickedit\Functional\QuickEditMinimalTest
Tests Quick Edit can be installed with Minimal.
@group quickedit @group legacy
Hierarchy
- class \Drupal\Tests\BrowserTestBase uses \Drupal\Core\Test\FunctionalTestSetupTrait, \Drupal\Tests\UiHelperTrait, \Drupal\Core\Test\TestSetupTrait, \Drupal\Tests\block\Traits\BlockCreationTrait, \Drupal\FunctionalTests\AssertLegacyTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\node\Traits\NodeCreationTrait, \Drupal\Tests\node\Traits\ContentTypeCreationTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\user\Traits\UserCreationTrait, \Drupal\Tests\XdebugRequestTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, \Drupal\Tests\ExtensionListTestTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\quickedit\Functional\QuickEditMinimalTest extends \Drupal\Tests\BrowserTestBase
Expanded class hierarchy of QuickEditMinimalTest
File
-
core/
modules/ quickedit/ tests/ src/ Functional/ QuickEditMinimalTest.php, line 13
Namespace
Drupal\Tests\quickedit\FunctionalView source
class QuickEditMinimalTest extends BrowserTestBase {
/**
* {@inheritdoc}
*/
protected $profile = 'minimal';
/**
* {@inheritdoc}
*/
protected static $modules = [
'quickedit',
'quickedit_test',
];
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Tests that Quick Edit works with no admin theme.
*
* @see \quickedit_library_info_alter()
*/
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.');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.