summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/Tests/NodeFieldMultilingualTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/node/src/Tests/NodeFieldMultilingualTestCase.php')
-rw-r--r--core/modules/node/src/Tests/NodeFieldMultilingualTestCase.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/node/src/Tests/NodeFieldMultilingualTestCase.php b/core/modules/node/src/Tests/NodeFieldMultilingualTestCase.php
index fd83b93..42dfafb 100644
--- a/core/modules/node/src/Tests/NodeFieldMultilingualTestCase.php
+++ b/core/modules/node/src/Tests/NodeFieldMultilingualTestCase.php
@@ -133,9 +133,9 @@ class NodeFieldMultilingualTestCase extends WebTestBase {
// Check if node body is showed.
$this->drupalGet('node/' . $node->id());
- $body = $this->xpath('//article[@id=:id]//div[@class=:class]/descendant::p', array(
- ':id' => 'node-' . $node->id(),
- ':class' => 'content',
+ $body = $this->xpath('//article[contains(concat(" ", normalize-space(@class), " "), :node-class)]//div[contains(concat(" ", normalize-space(@class), " "), :content-class)]/descendant::p', array(
+ ':node-class' => ' node ',
+ ':content-class' => 'node__content',
));
$this->assertEqual(current($body), $node->body->value, 'Node body found.');
}