diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php index ae34a77..7c4cac0 100644 --- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php +++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php @@ -153,21 +153,21 @@ function manageFieldsPage($type = '') { // Assert entity operations for all fields. $number_of_links = 3; $number_of_links_found = 0; - $result = $this->xpath('//ul[@class = "dropbutton"]/li/a'); + $operation_links = $this->xpath('//ul[@class = "dropbutton"]/li/a'); $url = base_path() . "admin/structure/types/manage/$type/fields/node.$type.body"; - foreach ($result as $res) { - switch ($res['title']) { + foreach ($operation_links as $link) { + switch ($link['title']) { case 'Edit field settings.': - $this->assertIdentical($url, (string) $res['href']); + $this->assertIdentical($url, (string) $link['href']); $number_of_links_found++; break; case 'Edit storage settings.': - $this->assertIdentical("$url/storage", (string) $res['href']); + $this->assertIdentical("$url/storage", (string) $link['href']); $number_of_links_found++; break; case 'Delete field.': - $this->assertIdentical("$url/delete", (string) $res['href']); + $this->assertIdentical("$url/delete", (string) $link['href']); $number_of_links_found++; break; }