Mercurial > hg > isophonics-drupal-site
diff core/modules/quickedit/src/Tests/QuickEditLoadingTest.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php Fri Feb 23 15:51:18 2018 +0000 +++ b/core/modules/quickedit/src/Tests/QuickEditLoadingTest.php Fri Feb 23 15:52:07 2018 +0000 @@ -330,6 +330,13 @@ public function testWithPendingRevision() { $this->drupalLogin($this->editorUser); + // Verify that the preview is loaded correctly. + $this->drupalPostForm('node/add/article', ['title[0][value]' => 'foo'], 'Preview'); + $this->assertResponse(200); + // Verify that quickedit is not active on preview. + $this->assertNoRaw('data-quickedit-entity-id="node/' . $this->testNode->id() . '"'); + $this->assertNoRaw('data-quickedit-field-id="node/' . $this->testNode->id() . '/title/' . $this->testNode->language()->getId() . '/full"'); + $this->drupalGet('node/' . $this->testNode->id()); $this->assertRaw('data-quickedit-entity-id="node/' . $this->testNode->id() . '"'); $this->assertRaw('data-quickedit-field-id="node/' . $this->testNode->id() . '/title/' . $this->testNode->language()->getId() . '/full"'); @@ -340,6 +347,7 @@ $this->testNode->save(); $this->drupalGet('node/' . $this->testNode->id()); + $this->assertResponse(200); $this->assertNoRaw('data-quickedit-entity-id="node/' . $this->testNode->id() . '"'); $this->assertNoRaw('data-quickedit-field-id="node/' . $this->testNode->id() . '/title/' . $this->testNode->language()->getId() . '/full"'); }