function LocaleUpdateDevelopmentReleaseTest::testLocaleUpdateDevelopmentRelease

Same name in other branches
  1. 9 core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php \Drupal\Tests\locale\Functional\LocaleUpdateDevelopmentReleaseTest::testLocaleUpdateDevelopmentRelease()
  2. 10 core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php \Drupal\Tests\locale\Functional\LocaleUpdateDevelopmentReleaseTest::testLocaleUpdateDevelopmentRelease()
  3. 11.x core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php \Drupal\Tests\locale\Functional\LocaleUpdateDevelopmentReleaseTest::testLocaleUpdateDevelopmentRelease()

File

core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php, line 34

Class

LocaleUpdateDevelopmentReleaseTest
Test for proper version fallback in case of a development release.

Namespace

Drupal\Tests\locale\Functional

Code

public function testLocaleUpdateDevelopmentRelease() {
    $projects = locale_translation_build_projects();
    $this->verbose($projects['drupal']->info['version']);
    $this->assertEqual($projects['drupal']->info['version'], '8.0.x', 'The branch of the core dev release.');
    $this->verbose($projects['contrib']->info['version']);
    $this->assertEqual($projects['contrib']->info['version'], '12.x-10.x', 'The branch of the contrib module dev release.');
}

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