protected function PreviewLinkSessionTokenUpdateTest::setUp in Preview Link 2.x
Same name and namespace in other branches
- 2.0.x tests/src/Functional/Update/PreviewLinkSessionTokenUpdateTest.php \Drupal\Tests\preview_link\Functional\Update\PreviewLinkSessionTokenUpdateTest::setUp()
Overrides BrowserTestBase::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/ PreviewLinkSessionTokenUpdateTest.php, line 31
Class
- PreviewLinkSessionTokenUpdateTest
- Tests upgrade path adding Preview Link session functionality.
Namespace
Drupal\Tests\preview_link\Functional\UpdateCode
protected function setUp() {
parent::setUp();
$this
->installModulesFromClassProperty($this->container);
}