comparison core/modules/locale/tests/src/Functional/LocaleUpdateDevelopmentReleaseTest.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\Tests\locale\Functional;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8 * Test for proper version fallback in case of a development release.
9 *
10 * @group language
11 */
12 class LocaleUpdateDevelopmentReleaseTest extends BrowserTestBase {
13
14 public static $modules = ['locale', 'locale_test_development_release'];
15
16 protected function setUp() {
17 parent::setUp();
18 module_load_include('compare.inc', 'locale');
19 $admin_user = $this->drupalCreateUser(['administer modules', 'administer languages', 'access administration pages', 'translate interface']);
20 $this->drupalLogin($admin_user);
21 $this->drupalPostForm('admin/config/regional/language/add', ['predefined_langcode' => 'hu'], t('Add language'));
22 }
23
24 public function testLocaleUpdateDevelopmentRelease() {
25 $projects = locale_translation_build_projects();
26 $this->verbose($projects['drupal']->info['version']);
27 $this->assertEqual($projects['drupal']->info['version'], '8.0.x', 'The branch of the core dev release.');
28 $this->verbose($projects['contrib']->info['version']);
29 $this->assertEqual($projects['contrib']->info['version'], '12.x-10.x', 'The branch of the contrib module dev release.');
30 }
31
32 }