1 | <?php |
||
15 | class GraphQLContentTestBase extends GraphQLCoreTestBase { |
||
16 | use ContentTypeCreationTrait; |
||
17 | use UserCreationTrait; |
||
18 | use NodeCreationTrait; |
||
19 | use RevisionsTestTrait; |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public static $modules = [ |
||
25 | 'node', |
||
26 | 'field', |
||
27 | 'filter', |
||
28 | 'text', |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | * |
||
34 | * Add the 'access content' permission to the mocked account. |
||
35 | */ |
||
36 | protected function userPermissions() { |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | protected function setUp() { |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | protected function defaultCacheTags() { |
||
73 | |||
74 | /** |
||
75 | * Add a field to test content type. |
||
76 | * |
||
77 | * @param string $type |
||
78 | * Field type. |
||
79 | * @param string $fieldName |
||
80 | * Field machine name. |
||
81 | * @param string $label |
||
82 | * Label for the field. |
||
83 | */ |
||
84 | protected function addField($type, $fieldName, $label = 'Label', $bundle = 'test') { |
||
99 | |||
100 | } |
||
101 |