class FieldLayoutUninstallTest
Same name and namespace in other branches
- 11.x core/modules/field_layout/tests/src/Kernel/FieldLayoutUninstallTest.php \Drupal\Tests\field_layout\Kernel\FieldLayoutUninstallTest
- 10 core/modules/field_layout/tests/src/Kernel/FieldLayoutUninstallTest.php \Drupal\Tests\field_layout\Kernel\FieldLayoutUninstallTest
- 8.9.x core/modules/field_layout/tests/src/Kernel/FieldLayoutUninstallTest.php \Drupal\Tests\field_layout\Kernel\FieldLayoutUninstallTest
@group field_layout
Hierarchy
- class \Drupal\KernelTests\KernelTestBase implements \Drupal\Core\DependencyInjection\ServiceProviderInterface uses \Drupal\KernelTests\AssertLegacyTrait, \Drupal\KernelTests\AssertContentTrait, \Drupal\Tests\RandomGeneratorTrait, \Drupal\Tests\ConfigTestTrait, \Drupal\Tests\ExtensionListTestTrait, \Drupal\Tests\TestRequirementsTrait, \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\KernelTests\Core\Entity\EntityKernelTestBase uses \Drupal\Tests\user\Traits\UserCreationTrait extends \Drupal\KernelTests\KernelTestBase
- class \Drupal\Tests\layout_builder\Kernel\LayoutBuilderCompatibilityTestBase extends \Drupal\KernelTests\Core\Entity\EntityKernelTestBase
- class \Drupal\Tests\field_layout\Kernel\FieldLayoutUninstallTest extends \Drupal\Tests\layout_builder\Kernel\LayoutBuilderCompatibilityTestBase
- class \Drupal\Tests\layout_builder\Kernel\LayoutBuilderCompatibilityTestBase extends \Drupal\KernelTests\Core\Entity\EntityKernelTestBase
- class \Drupal\KernelTests\Core\Entity\EntityKernelTestBase uses \Drupal\Tests\user\Traits\UserCreationTrait extends \Drupal\KernelTests\KernelTestBase
Expanded class hierarchy of FieldLayoutUninstallTest
File
-
core/
modules/ field_layout/ tests/ src/ Kernel/ FieldLayoutUninstallTest.php, line 10
Namespace
Drupal\Tests\field_layout\KernelView source
class FieldLayoutUninstallTest extends LayoutBuilderCompatibilityTestBase {
/**
* Ensures field layout can be uninstalled with layout builder enabled.
*/
public function testFieldLayoutUninstall() {
// Setup user schema so user hook uninstall hook doesn't break.
$this->installSchema('user', 'users_data');
// Setup layout builder and same displays.
$this->installLayoutBuilder();
// Ensure install hook can handle displays without a layout.
$this->container
->get('module_installer')
->install([
'field_layout',
]);
// Ensure uninstall hook can handle displays without a layout.
$this->container
->get('module_installer')
->uninstall([
'field_layout',
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.