Mercurial > hg > isophonics-drupal-site
diff core/modules/field_ui/src/Tests/ManageDisplayTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 7a779792577d |
children |
line wrap: on
line diff
--- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -2,7 +2,6 @@ namespace Drupal\field_ui\Tests; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Entity\Entity\EntityFormDisplay; use Drupal\Core\Entity\Entity\EntityViewDisplay; use Drupal\Core\Entity\EntityInterface; @@ -48,7 +47,7 @@ $vocabulary = Vocabulary::create([ 'name' => $this->randomMachineName(), 'description' => $this->randomMachineName(), - 'vid' => Unicode::strtolower($this->randomMachineName()), + 'vid' => mb_strtolower($this->randomMachineName()), 'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED, 'help' => '', 'nodes' => ['article' => 'article'], @@ -119,7 +118,7 @@ $edit = [ 'fields[field_test][type]' => 'field_test_multiple', 'fields[field_test][region]' => 'content', - 'refresh_rows' => 'field_test' + 'refresh_rows' => 'field_test', ]; $this->drupalPostAjaxForm(NULL, $edit, ['op' => t('Refresh')]); $format = 'field_test_multiple'; @@ -252,6 +251,7 @@ }, $result); $expected_options = [ 'test_field_widget', + 'test_field_widget_multilingual', 'test_field_widget_multiple', ]; $this->assertEqual($options, $expected_options, 'The expected widget ordering is respected.'); @@ -313,8 +313,8 @@ $this->drupalGet($manage_display); // Checks if the select elements contain the specified options. - $this->assertFieldSelectOptions('fields[field_test][type]', ['test_field_widget', 'test_field_widget_multiple']); - $this->assertFieldSelectOptions('fields[field_onewidgetfield][type]', ['test_field_widget']); + $this->assertFieldSelectOptions('fields[field_test][type]', ['test_field_widget', 'test_field_widget_multilingual', 'test_field_widget_multiple']); + $this->assertFieldSelectOptions('fields[field_onewidgetfield][type]', ['test_field_widget', 'test_field_widget_multilingual']); // Ensure that fields can be hidden directly by changing the region. $this->assertFieldByName('fields[field_test][region]', 'content'); @@ -487,7 +487,7 @@ } /** - * Asserts that a string is (not) found in the rendered nodein a view mode. + * Asserts that a string is (not) found in the rendered node in a view mode. * * This helper function is used by assertNodeViewText() and * assertNodeViewNoText().