protected function UpdatePathTest::setUp in Lightning Layout 8.2
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/ UpdatePathTest.php, line 31
Class
- UpdatePathTest
- Tests Lightning Layout's database update path.
Namespace
Drupal\Tests\lightning_layout\FunctionalCode
protected function setUp() : void {
parent::setUp();
NodeType::load('landing_page')
->unsetThirdPartySetting('lightning_workflow', 'workflow')
->save();
$node_type = NodeType::load('page');
if ($node_type) {
$node_type
->delete();
}
}