commit 4da97b79749804081dd532a6f387dbab9f3ccf41 Author: Erik Stielstra Date: Wed Aug 12 17:22:15 2015 +0200 comment #3 diff --git a/core/modules/locale/src/Tests/LocaleUpdateNotDevelopmentReleaseTest.php b/core/modules/locale/src/Tests/LocaleUpdateNotDevelopmentReleaseTest.php index 0763809..4319439 100644 --- a/core/modules/locale/src/Tests/LocaleUpdateNotDevelopmentReleaseTest.php +++ b/core/modules/locale/src/Tests/LocaleUpdateNotDevelopmentReleaseTest.php @@ -17,7 +17,7 @@ */ class LocaleUpdateNotDevelopmentReleaseTest extends WebTestBase { - public static $modules = array('update', 'locale', 'locale_test_not_development_release'); + public static $modules = array('locale', 'locale_test_not_development_release'); protected function setUp() { parent::setUp(); @@ -27,7 +27,15 @@ protected function setUp() { $this->drupalPostForm('admin/config/regional/language/add', array('predefined_langcode' => 'hu'), t('Add language')); } - public function testLocaleUpdateNotDevelopmentRelease() { + public function testLocaleUpdateWithoutUpdateModule() { + $projects = locale_translation_build_projects(); + $this->verbose($projects['drupal']->info['version']); + $this->assertEqual($projects['drupal']->info['version'], '8.0.0-alpha102', 'The release number without the "-dev" will be used.'); + } + + public function testLocaleUpdateWithUpdateModule() { + \Drupal::getContainer()->get('module_installer')->install(array('update')); + // Set available Drupal releases for test. $available = array( 'title' => 'Drupal core', @@ -80,4 +88,5 @@ public function testLocaleUpdateNotDevelopmentRelease() { $this->verbose($projects['drupal']->info['version']); $this->assertEqual($projects['drupal']->info['version'], '8.0.0-alpha110', 'The first release with the same major release number which is not a development release.'); } + }