Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / diff / src / Tests / DiffAdminFormsTest.php
index 03e60d59c0bb54c2e289eee78bec32b22edcb845..bbbfd9260f9a169022a1118ad6646dfe283c9779 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 namespace Drupal\diff\Tests;
+use Drupal\Tests\diff\Functional\CoreVersionUiTestTrait;
 
 /**
  * Tests the Diff admin forms.
@@ -9,6 +10,8 @@ namespace Drupal\diff\Tests;
  */
 class DiffAdminFormsTest extends DiffTestBase {
 
+  use CoreVersionUiTestTrait;
+
   /**
    * Modules to enable.
    *
@@ -156,13 +159,13 @@ class DiffAdminFormsTest extends DiffTestBase {
       'title[0][value]' => 'great_title',
       'body[0][value]' => '<p>great_body</p>',
     ];
-    $this->drupalPostForm('node/add/article', $edit, t('Save and publish'));
+    $this->drupalPostNodeForm('node/add/article', $edit, t('Save and publish'));
     $this->clickLink('Edit');
     $edit = [
       'title[0][value]' => 'greater_title',
       'body[0][value]' => '<p>greater_body</p>',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save and keep published'));
+    $this->drupalPostNodeForm(NULL, $edit, t('Save and keep published'));
 
     // Assert the diff display uses the classic layout.
     $node = $this->getNodeByTitle('greater_title');