diff -u b/core/modules/link/src/Tests/LinkFieldTest.php b/core/modules/link/src/Tests/LinkFieldTest.php --- b/core/modules/link/src/Tests/LinkFieldTest.php +++ b/core/modules/link/src/Tests/LinkFieldTest.php @@ -625,8 +625,7 @@ // Display creation form. $this->drupalGet('entity_test/add'); - $edit = []; - $this->drupalPostForm(NULL, $edit, t('Save')); + $this->drupalPostForm(NULL, array(), t('Save')); $result = $this->xpath('//label[contains(@class, :class) and contains(text(), :text)]', array(':class' => 'form-required', ':text' => 'Link text')); $this->assertEqual(count($result), 1, "Link text is marked as required when the link field is set to required.");