You are here

protected function UpdatePathTest::setUp in Lightning Core 8.5

Overrides WebTestBase::setUp() for update testing.

The main difference in this method is that rather than performing the installation via the installer, a database is loaded. Additional work is then needed to set various things such as the config directories and the container that would normally be done via the installer.

Overrides UpdatePathTestBase::setUp

File

tests/src/Functional/Update/UpdatePathTest.php, line 30

Class

UpdatePathTest
Tests Lightning Core's database update path.

Namespace

Drupal\Tests\lightning_core\Functional\Update

Code

protected function setUp() : void {
  parent::setUp();

  // Remove Workflow and Menu UI-related settings from the Page content type.
  NodeType::load('page')
    ->unsetThirdPartySetting('lightning_workflow', 'workflow')
    ->unsetThirdPartySetting('menu_ui', 'available_menus')
    ->unsetThirdPartySetting('menu_ui', 'parent')
    ->save();
}