diff --git a/core/modules/views/lib/Drupal/views/Tests/GlossaryTest.php b/core/modules/views/lib/Drupal/views/Tests/GlossaryTest.php index 601c953..c721627 100644 --- a/core/modules/views/lib/Drupal/views/Tests/GlossaryTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/GlossaryTest.php @@ -78,6 +78,9 @@ public function testGlossaryView() { $result = $this->xpath('//a[contains(@href, :href) and normalize-space(text())=:label]/..', array(':href' => $href, ':label' => $label)); $this->assertTrue(count($result)); // The rendered output looks like "| (count)" so let's figure out the int. + debug((string) $result[0]); + debug(trim(str_replace(array('|', '(', ')'), '', (string) $result[0]))); + debug($count); $result_count = trim(str_replace(array('|', '(', ')'), '', (string) $result[0])); $this->assertEqual($result_count, $count, 'The expected number got rendered.'); }