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