use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\link\LinkItemInterface;
+use Drupal\Tests\diff\Functional\CoreVersionUiTestTrait;
/**
* Tests the Diff module plugins.
class DiffPluginVariousTest extends DiffPluginTestBase {
use CommentTestTrait;
+ use CoreVersionUiTestTrait;
/**
* Modules to enable.
'body[0][value]' => '<p>Revision 1</p>',
'comment[0][status]' => CommentItemInterface::OPEN,
);
- $this->drupalPostForm('node/add/article', $edit, t('Save and publish'));
+ $this->drupalPostNodeForm('node/add/article', $edit, t('Save and publish'));
$node = $this->drupalGetNodeByTitle($title);
// Edit the article and close its comments.
'comment[0][status]' => CommentItemInterface::CLOSED,
'revision' => TRUE,
);
- $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
+ $this->drupalPostNodeForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
// Check the difference between the last two revisions.
$this->clickLink(t('Revisions'));
'field_email[0][value]' => 'bar@example.com',
'revision' => TRUE,
);
- $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
+ $this->drupalPostNodeForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
// Check the difference between the last two revisions.
$this->clickLink(t('Revisions'));
'field_link[0][uri]' => 'http://www.google.es',
'revision' => TRUE,
];
- $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
+ $this->drupalPostNodeForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
// Check differences between revisions.
$this->clickLink(t('Revisions'));
'field_list' => 'value_b',
'revision' => TRUE,
];
- $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
+ $this->drupalPostNodeForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
// Check differences between revisions.
$this->clickLink(t('Revisions'));
'field_text_long[0][value]' => 'Fly',
'revision' => TRUE,
];
- $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
+ $this->drupalPostNodeForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
// Check differences between revisions.
$this->clickLink(t('Revisions'));
'body[0][summary]' => 'Bar summary',
'revision' => TRUE,
];
- $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
+ $this->drupalPostNodeForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published'));
// Check differences between revisions.
$this->clickLink(t('Revisions'));