<?php
namespace Drupal\diff\Tests;
+use Drupal\Tests\diff\Functional\CoreVersionUiTestTrait;
/**
* Tests field visibility when using a custom view mode.
*/
class DiffViewModeTest extends DiffTestBase {
+ use CoreVersionUiTestTrait;
+
/**
* Modules to enable.
*
'body[0][value]' => 'Fighters',
'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'));
// Set the Body field to hidden in the diff view mode.
$edit = [