Mercurial > hg > isophonics-drupal-site
diff core/modules/views/tests/src/Functional/GlossaryTest.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 |
line wrap: on
line diff
--- a/core/modules/views/tests/src/Functional/GlossaryTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/views/tests/src/Functional/GlossaryTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -2,7 +2,6 @@ namespace Drupal\Tests\views\Functional; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Language\LanguageInterface; use Drupal\Core\Url; use Drupal\views\Tests\AssertViewsCacheTagsTrait; @@ -41,7 +40,7 @@ $nodes_by_char = []; foreach ($nodes_per_char as $char => $count) { $setting = [ - 'type' => $type->id() + 'type' => $type->id(), ]; for ($i = 0; $i < $count; $i++) { $node = $setting; @@ -109,7 +108,7 @@ $this->assertResponse(200); foreach ($nodes_per_char as $char => $count) { $href = Url::fromRoute('view.glossary.page_1', ['arg_0' => $char])->toString(); - $label = Unicode::strtoupper($char); + $label = mb_strtoupper($char); // Get the summary link for a certain character. Filter by label and href // to ensure that both of them are correct. $result = $this->xpath('//a[contains(@href, :href) and normalize-space(text())=:label]/..', [':href' => $href, ':label' => $label]);