protected function BookUninstallTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/book/src/Tests/BookUninstallTest.php \Drupal\book\Tests\BookUninstallTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ book/ src/ Tests/ BookUninstallTest.php, line 31 - Contains \Drupal\book\Tests\BookUninstallTest.
Class
- BookUninstallTest
- Tests that the Book module cannot be uninstalled if books exist.
Namespace
Drupal\book\TestsCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installSchema('book', array(
'book',
));
$this
->installSchema('node', array(
'node_access',
));
$this
->installConfig(array(
'node',
'book',
'field',
));
// For uninstall to work.
$this
->installSchema('user', array(
'users_data',
));
}