Unverified Commit 751b3842 authored by alexpott's avatar alexpott
Browse files

Issue #2668416 by Krzysztof Domański, wheatpenny, Lendude, alexpott: Wrong assert in NodeTitleTest

parent 9498875e
......@@ -34,6 +34,7 @@ class NodeTitleTest extends NodeTestBase {
protected function setUp() {
$this->adminUser = $this->drupalCreateUser(['administer nodes', 'create article content', 'create page content', 'post comments']);
......@@ -80,7 +81,7 @@ public function testNodeTitle() {
$this->assertTitle(0 . ' | Drupal', 'Page title is equal to 0.', 'Node');
// Test that 0 appears in the template <h1>.
$xpath = '//h1';
$this->assertEqual(current($this->xpath($xpath)), 0, 'Node title is displayed as 0.', 'Node');
$this->assertSame('0', $this->xpath($xpath)[0]->getText(), 'Node title is displayed as 0.');
// Test edge case where node title contains special characters.
$edge_case_title = 'article\'s "title".';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment