You are here

public function CommentTest::setUp in JSON:API 8.2

Overrides ResourceTestBase::setUp

File

tests/src/Functional/CommentTest.php, line 72

Class

CommentTest
JSON:API integration test for the "Comment" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

public function setUp() {
  parent::setUp();

  // @todo Remove this when only Drupal >= 8.7 is supported; validation order changed in 8.7.
  if (floatval(\Drupal::VERSION) < 8.699999999999999) {
    $tmp = static::$patchProtectedFieldNames['uid'];
    unset(static::$patchProtectedFieldNames['uid']);
    static::$patchProtectedFieldNames['uid'] = $tmp;
  }
}