modules/graphql_legacy/graphql_mutation/tests/src/Kernel/CreateEntityTest.php 1 location
|
@@ 31-43 (lines=13) @@
|
28 |
|
/** |
29 |
|
* {@inheritdoc} |
30 |
|
*/ |
31 |
|
protected function setUp() { |
32 |
|
parent::setUp(); |
33 |
|
$this->installConfig('node'); |
34 |
|
$this->installConfig('filter'); |
35 |
|
$this->installEntitySchema('node'); |
36 |
|
$this->installSchema('node', 'node_access'); |
37 |
|
$this->createContentType(['type' => 'test']); |
38 |
|
|
39 |
|
Role::load('anonymous') |
40 |
|
->grantPermission('access content') |
41 |
|
->grantPermission('create test content') |
42 |
|
->save(); |
43 |
|
} |
44 |
|
|
45 |
|
/** |
46 |
|
* Test creation with a simple text field. |
modules/graphql_legacy/graphql_mutation/tests/src/Kernel/DeleteEntityTest.php 1 location
|
@@ 33-45 (lines=13) @@
|
30 |
|
/** |
31 |
|
* {@inheritdoc} |
32 |
|
*/ |
33 |
|
protected function setUp() { |
34 |
|
parent::setUp(); |
35 |
|
$this->installConfig('node'); |
36 |
|
$this->installConfig('filter'); |
37 |
|
$this->installEntitySchema('node'); |
38 |
|
$this->installSchema('node', 'node_access'); |
39 |
|
$this->createContentType(['type' => 'test']); |
40 |
|
|
41 |
|
Role::load('anonymous') |
42 |
|
->grantPermission('access content') |
43 |
|
->grantPermission('delete any test content') |
44 |
|
->save(); |
45 |
|
} |
46 |
|
|
47 |
|
/** |
48 |
|
* Test deletion. |
modules/graphql_legacy/graphql_mutation/tests/src/Kernel/UpdateEntityTest.php 1 location
|
@@ 33-45 (lines=13) @@
|
30 |
|
/** |
31 |
|
* {@inheritdoc} |
32 |
|
*/ |
33 |
|
protected function setUp() { |
34 |
|
parent::setUp(); |
35 |
|
$this->installConfig('node'); |
36 |
|
$this->installConfig('filter'); |
37 |
|
$this->installEntitySchema('node'); |
38 |
|
$this->installSchema('node', 'node_access'); |
39 |
|
$this->createContentType(['type' => 'test']); |
40 |
|
|
41 |
|
Role::load('anonymous') |
42 |
|
->grantPermission('access content') |
43 |
|
->grantPermission('edit any test content') |
44 |
|
->save(); |
45 |
|
} |
46 |
|
|
47 |
|
/** |
48 |
|
* Test update with a simple text field. |