X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fpathauto%2Fsrc%2FTests%2FPathautoUserWebTest.php;h=8d73a3f34521bfae7a2bc89cb73cb94de3d93b74;hp=54832df9dc5b1f8288d4a8f63dabf5acd289da0a;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/pathauto/src/Tests/PathautoUserWebTest.php b/web/modules/contrib/pathauto/src/Tests/PathautoUserWebTest.php index 54832df9d..8d73a3f34 100644 --- a/web/modules/contrib/pathauto/src/Tests/PathautoUserWebTest.php +++ b/web/modules/contrib/pathauto/src/Tests/PathautoUserWebTest.php @@ -1,7 +1,7 @@ createPattern('user', '/users/[user:name]'); } - /** * Basic functional testing of Pathauto with users. */ @@ -71,7 +70,6 @@ class PathautoUserWebTest extends WebTestBase { $view->initDisplay(); $view->preview('page_1'); - foreach ($view->result as $key => $row) { if ($view->field['name']->getValue($row) == $account->getUsername()) { break; @@ -85,7 +83,7 @@ class PathautoUserWebTest extends WebTestBase { $this->drupalPostForm('admin/people', $edit, t('Apply to selected items')); $this->assertText('Update URL alias was applied to 1 item.'); - $this->assertEntityAlias($account, '/users/' . Unicode::strtolower($account->getUsername())); + $this->assertEntityAlias($account, '/users/' . mb_strtolower($account->getUsername())); $this->assertEntityAlias($this->adminUser, '/user/' . $this->adminUser->id()); }