You are here

protected function Thunder2UpdateTest::setUp in Thunder 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/Thunder2UpdateTest.php, line 20

Class

Thunder2UpdateTest
Tests Thunder updates from 2.0 to current.

Namespace

Drupal\Tests\thunder\Functional

Code

protected function setUp() {
  parent::setUp();
  $module_handler = \Drupal::service('module_handler');
  $this
    ->applyPatch('https://www.drupal.org/files/issues/2020-03-05/3117998.patch', $module_handler
    ->getModule('paragraphs')
    ->getPath());
}