Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -250,10 +250,17 @@ class ContactSitewideTest extends WebTestBase {
|
|||
// Test field UI and field integration.
|
||||
$this->drupalGet('admin/structure/contact');
|
||||
|
||||
$view_link = $this->xpath('//table/tbody/tr/td/a[contains(@href, :href) and text()=:text]', [
|
||||
':href' => \Drupal::url('entity.contact_form.canonical', ['contact_form' => $contact_form]),
|
||||
':text' => $label,
|
||||
]
|
||||
);
|
||||
$this->assertTrue(!empty($view_link), 'Contact listing links to contact form.');
|
||||
|
||||
// Find out in which row the form we want to add a field to is.
|
||||
$i = 0;
|
||||
foreach($this->xpath('//table/tbody/tr') as $row) {
|
||||
if (((string)$row->td[0]) == $label) {
|
||||
if (((string) $row->td[0]->a) == $label) {
|
||||
break;
|
||||
}
|
||||
$i++;
|
||||
|
|
Reference in a new issue