diff --git a/src/Tests/DiffPluginTest.php b/src/Tests/DiffPluginTest.php index 8109230..f428656 100644 --- a/src/Tests/DiffPluginTest.php +++ b/src/Tests/DiffPluginTest.php @@ -140,14 +140,14 @@ class DiffPluginTest extends WebTestBase { /** * Tests a field without plugins. */ - public function testNoPlugin() { + public function testFieldWithNoPlugin() { // Create an article. $node = $this->drupalCreateNode([ 'type' => 'article', ]); - // Edit the article and create a new revision. "Changed" field should be - // updated. + // Update the article and add a new revision, the "changed" field should be + // updated which does not have plugins provided by diff. $edit = array( 'revision' => TRUE, ); @@ -156,6 +156,9 @@ class DiffPluginTest extends WebTestBase { // Check the difference between the last two revisions. $this->clickLink(t('Revisions')); $this->drupalPostForm(NULL, NULL, t('Compare')); + + // "changed" field is not displayed since there is no plugin for it. This + // should not break the revisions comparison display. $this->assertResponse(200); $this->assertLink(t('Back to Revision Overview')); $this->assertLink(t('Standard'));