protected function Update360Test::setUp in Lightning Media 8.4
Same name and namespace in other branches
- 8.3 tests/src/Functional/Update360Test.php \Drupal\Tests\lightning_media\Functional\Update360Test::setUp()
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/ Update360Test.php, line 39
Class
- Update360Test
- Tests the optional configuration updates targeting Lightning Media 3.6.0.
Namespace
Drupal\Tests\lightning_media\FunctionalCode
protected function setUp() {
parent::setUp();
// Create a content type so we can test that content roles are correctly
// updated.
$this
->drupalCreateContentType([
'type' => 'test',
]);
// Install Lightning Roles so we can ensure that content authoring
// permissions are updated too.
\Drupal::service('module_installer')
->install([
'lightning_roles',
]);
}