Skip to content

Commit e89897d

Browse files
authored
test(kernel): Update $modules property to protected in test classes for D9 standard (drupal-graphql#1173)
1 parent e3e4e62 commit e89897d

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

tests/src/Kernel/DataProducer/Entity/Fields/Image/ImageDerivativeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ImageDerivativeTest extends GraphQLTestBase {
1818
/**
1919
* {@inheritdoc}
2020
*/
21-
public static $modules = ['image', 'file'];
21+
protected static $modules = ['image', 'file'];
2222

2323
/**
2424
* {@inheritdoc}

tests/src/Kernel/DataProducer/EntityDefinitionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class EntityDefinitionTest extends GraphQLTestBase {
2020
/**
2121
* {@inheritdoc}
2222
*/
23-
public static $modules = [
23+
protected static $modules = [
2424
'text',
2525
];
2626

tests/src/Kernel/Framework/PersistedQueriesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
class PersistedQueriesTest extends GraphQLTestBase {
1313

1414
/**
15-
* @var string[]
15+
* {@inheritdoc}
1616
*/
17-
public static $modules = [
17+
protected static $modules = [
1818
'graphql_persisted_queries_test',
1919
];
2020

tests/src/Kernel/Framework/UploadFileServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class UploadFileServiceTest extends GraphQLTestBase {
1818
/**
1919
* {@inheritdoc}
2020
*/
21-
public static $modules = ['file'];
21+
protected static $modules = ['file'];
2222

2323
/**
2424
* The FileUpload object we want to test, gets prepared in setUp().

tests/src/Kernel/GraphQLTestBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ abstract class GraphQLTestBase extends KernelTestBase {
2929
/**
3030
* {@inheritdoc}
3131
*/
32-
public static $modules = [
32+
protected static $modules = [
3333
'system',
3434
'user',
3535
'language',

tests/src/Kernel/ResolverBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ResolverBuilderTest extends GraphQLTestBase {
1717
/**
1818
* {@inheritdoc}
1919
*/
20-
public static $modules = ['graphql_resolver_builder_test'];
20+
protected static $modules = ['graphql_resolver_builder_test'];
2121

2222
/**
2323
* {@inheritdoc}

0 commit comments

Comments
 (0)