protected function BareMinimalUpgradePathTest::finishUpgradeSession

Asserts that the session was kept during update. Also, log out.

1 call to BareMinimalUpgradePathTest::finishUpgradeSession()
BareMinimalUpgradePathTest::testBasicMinimalUpgrade in drupal/core/modules/system/lib/Drupal/system/Tests/Upgrade/BareMinimalUpgradePathTest.php
Tests a successful major version release upgrade.
1 method overrides BareMinimalUpgradePathTest::finishUpgradeSession()
BareMinimalAnonymousUpgradePathTest::finishUpgradeSession in drupal/core/modules/system/lib/Drupal/system/Tests/Upgrade/BareMinimalAnonymousUpgradePathTest.php
Overrides \Drupal\system\Tests\Upgrade\UpgradePathTestBase::assertSessionKept().

File

drupal/core/modules/system/lib/Drupal/system/Tests/Upgrade/BareMinimalUpgradePathTest.php, line 97
Contains \Drupal\system\Tests\Upgrade\BareMinimalUpgradePathTest.

Class

BareMinimalUpgradePathTest
Performs major version release upgrade tests on a bare database.

Namespace

Drupal\system\Tests\Upgrade

Code

protected function finishUpgradeSession() {
  $this
    ->drupalGet('user');
  $this
    ->clickLink(t('Edit'));
  $this
    ->assertEqual($this
    ->getUrl(), url('user/1/edit', array(
    'absolute' => TRUE,
  )), 'We are still logged in as admin at the end of the upgrade.');
  $this
    ->drupalLogout();
}