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\FunctionalCode
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;
}
}