Skip to content

Commit aaea896

Browse files
pmelabfubhy
authored andcommitted
Basemodule cleanup. (#374)
1 parent a087079 commit aaea896

177 files changed

Lines changed: 311 additions & 203 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/graphql_block/tests/src/Kernel/BlockTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Drupal\block_content\Entity\BlockContent;
66
use Drupal\simpletest\BlockCreationTrait;
7-
use Drupal\Tests\graphql_core\Kernel\GraphQLFileTestBase;
7+
use Drupal\Tests\graphql\Kernel\GraphQLFileTestBase;
88

99
/**
1010
* Test block retrieval via GraphQL.
@@ -25,6 +25,7 @@ class BlockTest extends GraphQLFileTestBase {
2525
'filter',
2626
'editor',
2727
'ckeditor',
28+
'graphql_core',
2829
'graphql_content',
2930
'graphql_block',
3031
'graphql_block_test',

modules/graphql_breadcrumbs/tests/src/Kernel/BreadcrumbsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Drupal\node\NodeInterface;
1010
use Drupal\simpletest\ContentTypeCreationTrait;
1111
use Drupal\simpletest\NodeCreationTrait;
12-
use Drupal\Tests\graphql_core\Kernel\GraphQLFileTestBase;
12+
use Drupal\Tests\graphql\Kernel\GraphQLFileTestBase;
1313
use Prophecy\Argument;
1414

1515
/**

modules/graphql_content/tests/src/Kernel/EntityBasicFieldsTest.php

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Drupal\simpletest\ContentTypeCreationTrait;
66
use Drupal\simpletest\NodeCreationTrait;
77
use Drupal\simpletest\UserCreationTrait;
8-
use Drupal\Tests\graphql_core\Kernel\GraphQLFileTestBase;
8+
use Drupal\Tests\graphql\Kernel\GraphQLFileTestBase;
99
use Drupal\user\Entity\Role;
1010
use DateTime;
1111

@@ -26,6 +26,7 @@ class EntityBasicFieldsTest extends GraphQLFileTestBase {
2626
'text',
2727
'language',
2828
'content_translation',
29+
'graphql_core',
2930
'graphql_content',
3031
];
3132

@@ -55,26 +56,6 @@ protected function setUp() {
5556
'id' => 'fr',
5657
]);
5758
$language->save();
58-
59-
$this->container->get('config.factory')->getEditable('graphql_content.schema')
60-
->set('types', [
61-
'node' => [
62-
'exposed' => TRUE,
63-
'bundles' => [
64-
'test' => [
65-
'exposed' => TRUE,
66-
],
67-
],
68-
],
69-
'user' => [
70-
'exposed' => TRUE,
71-
'bundles' => [
72-
'user' => [
73-
'exposed' => TRUE,
74-
],
75-
],
76-
],
77-
])->save();
7859
}
7960

8061
/**

modules/graphql_content/tests/src/Kernel/EntityByIdTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Drupal\node\NodeInterface;
77
use Drupal\simpletest\ContentTypeCreationTrait;
88
use Drupal\simpletest\NodeCreationTrait;
9-
use Drupal\Tests\graphql_core\Kernel\GraphQLFileTestBase;
9+
use Drupal\Tests\graphql\Kernel\GraphQLFileTestBase;
1010
use Drupal\user\Entity\Role;
1111

1212
/**
@@ -29,6 +29,8 @@ class EntityByIdTest extends GraphQLFileTestBase {
2929
'language',
3030
'content_translation',
3131
'text',
32+
'graphql_test',
33+
'graphql_core',
3234
'graphql_content',
3335
];
3436

modules/graphql_content/tests/src/Kernel/EntityOverrideFieldsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Drupal\simpletest\ContentTypeCreationTrait;
1010
use Drupal\simpletest\NodeCreationTrait;
1111
use Drupal\Tests\graphql_content\Kernel\EntityRenderedFieldsTest;
12-
use Drupal\Tests\graphql_core\Kernel\GraphQLFileTestBase;
12+
use Drupal\Tests\graphql\Kernel\GraphQLFileTestBase;
1313
use Drupal\user\Entity\Role;
1414

1515
/**

modules/graphql_content/tests/src/Kernel/EntityRenderedFieldsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Drupal\field\Entity\FieldStorageConfig;
99
use Drupal\simpletest\ContentTypeCreationTrait;
1010
use Drupal\simpletest\NodeCreationTrait;
11-
use Drupal\Tests\graphql_core\Kernel\GraphQLFileTestBase;
11+
use Drupal\Tests\graphql\Kernel\GraphQLFileTestBase;
1212
use Drupal\user\Entity\Role;
1313

1414
/**
@@ -26,6 +26,7 @@ class EntityRenderedFieldsTest extends GraphQLFileTestBase {
2626
'field',
2727
'filter',
2828
'text',
29+
'graphql_core',
2930
'graphql_content',
3031
'graphql_content_test',
3132
];

modules/graphql_content/tests/src/Kernel/ExposedContentConfigurationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Drupal\field\Entity\FieldStorageConfig;
88
use Drupal\simpletest\ContentTypeCreationTrait;
99
use Drupal\simpletest\NodeCreationTrait;
10-
use Drupal\Tests\graphql_core\Kernel\GraphQLFileTestBase;
10+
use Drupal\Tests\graphql\Kernel\GraphQLFileTestBase;
1111
use Drupal\user\Entity\Role;
1212

1313
/**
@@ -31,6 +31,7 @@ class ExposedContentConfigurationTest extends GraphQLFileTestBase {
3131
'field',
3232
'filter',
3333
'text',
34+
'graphql_core',
3435
'graphql_content',
3536
'graphql_content_test',
3637
];

modules/graphql_content_mutation/tests/src/Kernel/CreateEntityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use Drupal\Core\Entity\Entity\EntityViewDisplay;
66
use Drupal\Core\Entity\Entity\EntityViewMode;
77
use Drupal\simpletest\ContentTypeCreationTrait;
8-
use Drupal\Tests\graphql_core\Kernel\GraphQLFileTestBase;
8+
use Drupal\Tests\graphql\Kernel\GraphQLFileTestBase;
99
use Drupal\user\Entity\Role;
1010

1111
/**

modules/graphql_content_mutation/tests/src/Kernel/DeleteEntityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Drupal\simpletest\ContentTypeCreationTrait;
66
use Drupal\simpletest\NodeCreationTrait;
7-
use Drupal\Tests\graphql_core\Kernel\GraphQLFileTestBase;
7+
use Drupal\Tests\graphql\Kernel\GraphQLFileTestBase;
88
use Drupal\user\Entity\Role;
99

1010
/**

modules/graphql_content_mutation/tests/src/Kernel/UpdateEntityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Drupal\Core\Entity\Entity\EntityViewMode;
77
use Drupal\simpletest\ContentTypeCreationTrait;
88
use Drupal\simpletest\NodeCreationTrait;
9-
use Drupal\Tests\graphql_core\Kernel\GraphQLFileTestBase;
9+
use Drupal\Tests\graphql\Kernel\GraphQLFileTestBase;
1010
use Drupal\user\Entity\Role;
1111

1212
/**

0 commit comments

Comments
 (0)