Skip to content
Snippets Groups Projects
Commit 34f638b2 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2097537 by tim.plunkett: Fixed Random failure in...

Issue #2097537 by tim.plunkett: Fixed Random failure in Drupal\block\Tests\Views\DisplayBlockTest->testBlockCategory().
parent adaf8355
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -95,7 +95,7 @@ public function testBlockCategory() { ...@@ -95,7 +95,7 @@ public function testBlockCategory() {
$this->drupalPostForm(NULL, array(), t('Save')); $this->drupalPostForm(NULL, array(), t('Save'));
// Test that the blocks are listed under the correct categories. // Test that the blocks are listed under the correct categories.
$category_id = 'edit-' . drupal_html_id(String::checkPlain($category)); $category_id = drupal_html_id('edit-' . String::checkPlain($category));
$arguments[':id'] = $category_id; $arguments[':id'] = $category_id;
$this->drupalGet('admin/structure/block'); $this->drupalGet('admin/structure/block');
$elements = $this->xpath('//details[@id=:id]//li[contains(@class, :li_class)]/a[contains(@href, :href) and text()=:text]', $arguments); $elements = $this->xpath('//details[@id=:id]//li[contains(@class, :li_class)]/a[contains(@href, :href) and text()=:text]', $arguments);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment