Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / comment / tests / src / Functional / Rest / CommentJsonAnonTest.php
1 <?php
2
3 namespace Drupal\Tests\comment\Functional\Rest;
4
5 use Drupal\Tests\rest\Functional\AnonResourceTestTrait;
6
7 /**
8  * @group rest
9  */
10 class CommentJsonAnonTest extends CommentResourceTestBase {
11
12   use AnonResourceTestTrait;
13
14   /**
15    * {@inheritdoc}
16    */
17   protected static $format = 'json';
18
19   /**
20    * {@inheritdoc}
21    */
22   protected static $mimeType = 'application/json';
23
24   /**
25    * {@inheritdoc}
26    *
27    * Anonymous users cannot edit their own comments.
28    *
29    * @see \Drupal\comment\CommentAccessControlHandler::checkAccess
30    *
31    * Therefore we grant them the 'administer comments' permission for the
32    * purpose of this test.
33    *
34    * @see ::setUpAuthorization
35    */
36   protected static $patchProtectedFieldNames = [
37     'pid' => NULL,
38     'entity_id' => NULL,
39     'changed' => NULL,
40     'thread' => NULL,
41     'entity_type' => NULL,
42     'field_name' => NULL,
43   ];
44
45 }