namespace Drupal\Tests\views\Functional;
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Url;
use Drupal\views\Tests\AssertViewsCacheTagsTrait;
$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;
$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]);