X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FGlossaryTest.php;fp=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FFunctional%2FGlossaryTest.php;h=ed247f1829bc1de8cb0968d4d6b68a1513053735;hp=d67f70dfd74bba9e4e4281726572e358fd7bd3ed;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/views/tests/src/Functional/GlossaryTest.php b/web/core/modules/views/tests/src/Functional/GlossaryTest.php index d67f70dfd..ed247f182 100644 --- a/web/core/modules/views/tests/src/Functional/GlossaryTest.php +++ b/web/core/modules/views/tests/src/Functional/GlossaryTest.php @@ -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 @@ class GlossaryTest extends ViewTestBase { $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 @@ class GlossaryTest extends ViewTestBase { $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]);