You are here

public function UpdateTestBase::formLogin in Automatic Updates 8.2

Helper that uses Drupal's user/login form to log in.

Parameters

string $username: Username.

string $password: Password.

string $working_dir: (optional) A working directory within which to login. Defaults to the workspace directory.

Overrides QuickStartTestBase::formLogin

1 call to UpdateTestBase::formLogin()
CoreUpdateTest::createTestSite in tests/src/Build/CoreUpdateTest.php
Uses our already-installed dependencies to build a test site to update.

File

tests/src/Build/UpdateTestBase.php, line 121

Class

UpdateTestBase
Base class for tests that perform in-place updates.

Namespace

Drupal\Tests\automatic_updates\Build

Code

public function formLogin($username, $password, $working_dir = NULL) {
  parent::formLogin($username, $password, $working_dir ?: $this->webRoot);
}