You are here

public function LocaleUpgradePathTestCase::testLocaleUpgrade in Drupal 7

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() {
  $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);
}