You are here

public function UrlAliasPermissionsUpdate8001::setUp in URL Alias Permissions 8

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/UrlAliasPermissionsUpdate8001.php, line 43

Class

UrlAliasPermissionsUpdate8001
Update test that checks if the permissions are converted to the new ones.

Namespace

Drupal\Tests\url_alias_permissions\Functional\Update

Code

public function setUp() : void {
  parent::setUp();
  $this->roleStorage = $this->container
    ->get('entity_type.manager')
    ->getStorage('user_role');
}