public function LocaleUpgradePathTestCase::testLocaleUpgrade

Test a successful upgrade (no negotiation).

Archivo

drupal-7.x/modules/simpletest/tests/upgrade/upgrade.locale.test, line 29

Class

LocaleUpgradePathTestCase
Upgrade test for locale.module.

Código

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);
}