diff --git a/core/modules/system/src/Tests/System/FrontPageTest.php b/core/modules/system/src/Tests/System/FrontPageTest.php index 03666fd..8a640b7 100644 --- a/core/modules/system/src/Tests/System/FrontPageTest.php +++ b/core/modules/system/src/Tests/System/FrontPageTest.php @@ -57,10 +57,13 @@ public function testDrupalFrontPage() { $this->assertTitle('Home | Drupal'); $this->assertText(t('On front page.'), 'Path is the front page.'); + $this->assertRaw('"currentPath":""'); $this->drupalGet('node'); $this->assertText(t('On front page.'), 'Path is the front page.'); + $this->assertRaw('"currentPath":""'); $this->drupalGet($this->nodePath); $this->assertNoText(t('On front page.'), 'Path is not the front page.'); + $this->assertNoRaw('"currentPath":""'); // Change the front page to an invalid path. $edit = array('site_frontpage' => '/kittens'); @@ -79,10 +82,13 @@ public function testDrupalFrontPage() { $this->drupalGet(''); $this->assertText(t('On front page.'), 'Path is the front page.'); + $this->assertRaw('"currentPath":""'); $this->drupalGet('node'); $this->assertNoText(t('On front page.'), 'Path is not the front page.'); + $this->assertNoRaw('"currentPath":""'); $this->drupalGet($this->nodePath); $this->assertText(t('On front page.'), 'Path is the front page.'); + $this->assertRaw('"currentPath":""'); } }