comparison core/modules/taxonomy/tests/src/Functional/VocabularyTranslationTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
1 <?php 1 <?php
2 2
3 namespace Drupal\Tests\taxonomy\Functional; 3 namespace Drupal\Tests\taxonomy\Functional;
4
5 use Drupal\Component\Utility\Unicode;
6 4
7 /** 5 /**
8 * Tests content translation for vocabularies. 6 * Tests content translation for vocabularies.
9 * 7 *
10 * @group taxonomy 8 * @group taxonomy
37 35
38 // Check that the field to enable content translation is available. 36 // Check that the field to enable content translation is available.
39 $this->assertField('edit-default-language-content-translation', 'The content translation checkbox is present on the page.'); 37 $this->assertField('edit-default-language-content-translation', 'The content translation checkbox is present on the page.');
40 38
41 // Create the vocabulary. 39 // Create the vocabulary.
42 $vid = Unicode::strtolower($this->randomMachineName()); 40 $vid = mb_strtolower($this->randomMachineName());
43 $edit['name'] = $this->randomMachineName(); 41 $edit['name'] = $this->randomMachineName();
44 $edit['description'] = $this->randomMachineName(); 42 $edit['description'] = $this->randomMachineName();
45 $edit['langcode'] = 'en'; 43 $edit['langcode'] = 'en';
46 $edit['vid'] = $vid; 44 $edit['vid'] = $vid;
47 $edit['default_language[content_translation]'] = TRUE; 45 $edit['default_language[content_translation]'] = TRUE;