function LocaleUpgradePathTestCase::testLocaleUpgrade

Test a successful upgrade (no negotiation).

File

modules/simpletest/tests/upgrade/upgrade.locale.test, line 29

Class

LocaleUpgradePathTestCase
Upgrade test for locale.module.

Code

public function testLocaleUpgrade() {
    if ($this->skipUpgradeTest) {
        return;
    }
    $this->assertTrue($this->performUpgrade(), 'The upgrade was completed successfully.');
    // The home page should be in French.
    $this->assertPageInLanguage('', 'fr');
    // No prefixed page should exist.
    $this->drupalGet('en');
    $this->assertResponse(404);
    $this->drupalGet('fr');
    $this->assertResponse(404);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.