Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / token / src / Tests / Tree / TreeTest.php
index ed1dd3cad4a856358c29986adf8da0af6095e1f3..7c72434765c6bdd97769503869ab50430a896154 100644 (file)
@@ -137,7 +137,7 @@ class TreeTest extends TokenTestBase {
   protected function getTokenTreeUrl($options = []) {
     $this->drupalGet('token_module_test/browse');
     $this->assertTitle('Available Tokens | Drupal');
-    $links = $this->xpath('//a[contains(@href, :href)]/@href', array(':href' => 'token/tree'));
+    $links = $this->xpath('//a[contains(@href, :href)]/@href', [':href' => 'token/tree']);
     $link = $this->getAbsoluteUrl((string) current($links));
     if (!empty($options)) {
       $options = Json::encode($options);