From 45d9dc8cc01bd816ca2a63a1800ec8b2d0e71e2b Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Wed, 13 Nov 2019 16:29:16 +0200 Subject: [PATCH 1/3] Rename Tests/ to tests/ This is pretty much universal and makes it easier to auto-complete paths to test files using muscle memory --- composer.json | 2 +- phpunit.xml.dist | 2 +- {Tests => tests}/DataProvider/TestConfig.php | 0 {Tests => tests}/DataProvider/TestConfigExtraFields.php | 0 {Tests => tests}/DataProvider/TestConfigInvalidRule.php | 0 {Tests => tests}/DataProvider/TestEmptySchema.php | 0 {Tests => tests}/DataProvider/TestEnumType.php | 0 {Tests => tests}/DataProvider/TestExtendedType.php | 0 {Tests => tests}/DataProvider/TestField.php | 0 {Tests => tests}/DataProvider/TestInputField.php | 0 {Tests => tests}/DataProvider/TestInputObjectType.php | 0 {Tests => tests}/DataProvider/TestInterfaceType.php | 0 {Tests => tests}/DataProvider/TestListType.php | 0 {Tests => tests}/DataProvider/TestMutationObjectType.php | 0 {Tests => tests}/DataProvider/TestObjectType.php | 0 {Tests => tests}/DataProvider/TestResolveInfo.php | 0 {Tests => tests}/DataProvider/TestScalarDataProvider.php | 0 {Tests => tests}/DataProvider/TestSchema.php | 0 {Tests => tests}/DataProvider/TestTimeType.php | 0 {Tests => tests}/DataProvider/TestUnionType.php | 0 {Tests => tests}/Issues/Issue109/Issue109Schema.php | 0 {Tests => tests}/Issues/Issue109/Issue109Test.php | 0 {Tests => tests}/Issues/Issue116/Issue116Test.php | 0 {Tests => tests}/Issues/Issue131/Issue131Test.php | 0 {Tests => tests}/Issues/Issue149/Issue149Test.php | 0 {Tests => tests}/Issues/Issue151/Issue151Test.php | 0 {Tests => tests}/Issues/Issue171/Issue171Schema.php | 0 {Tests => tests}/Issues/Issue171/Issue171Test.php | 0 {Tests => tests}/Issues/Issue193/Issue193Test.php | 0 {Tests => tests}/Issues/Issue194/ProcessorTest.php | 0 {Tests => tests}/Issues/Issue201/Issue201Test.php | 0 {Tests => tests}/Issues/Issue210/TypeServiceTest.php | 0 {Tests => tests}/Issues/Issue220/ResolvableObjectTraitTest.php | 0 {Tests => tests}/Issues/Issue90/Issue90Schema.php | 0 {Tests => tests}/Issues/Issue90/Issue90Test.php | 0 {Tests => tests}/Issues/Issue98/TypeServiceTest.php | 0 {Tests => tests}/Issues/Issue99/Issue99Schema.php | 0 {Tests => tests}/Issues/Issue99/Issue99Test.php | 0 {Tests => tests}/Library/Config/ConfigTest.php | 0 {Tests => tests}/Library/Config/FieldConfigTest.php | 0 {Tests => tests}/Library/Config/InterfaceTypeConfigTest.php | 0 {Tests => tests}/Library/Config/ObjectTypeConfigTest.php | 0 .../Library/Field/ArgumentsAwareConfigTraitTest.php | 0 {Tests => tests}/Library/Field/FieldAwareConfigTraitTest.php | 0 {Tests => tests}/Library/Field/FieldTest.php | 0 {Tests => tests}/Library/Field/InputFieldTest.php | 0 {Tests => tests}/Library/Relay/ArrayConnectionTest.php | 0 {Tests => tests}/Library/Relay/CallableFetcherTest.php | 0 {Tests => tests}/Library/Relay/ConnectionTest.php | 0 {Tests => tests}/Library/Relay/GlobalIdFieldTest.php | 0 {Tests => tests}/Library/Relay/MutationTest.php | 0 {Tests => tests}/Library/Relay/NodeFieldTest.php | 0 {Tests => tests}/Library/Relay/NodeInterfaceTypeTest.php | 0 {Tests => tests}/Library/Relay/NodeTest.php | 0 {Tests => tests}/Library/Type/EnumTypeTest.php | 0 {Tests => tests}/Library/Type/InputObjectTypeTest.php | 0 {Tests => tests}/Library/Type/InterfaceTypeTest.php | 0 {Tests => tests}/Library/Type/ListTypeTest.php | 0 {Tests => tests}/Library/Type/NonNullTypeTest.php | 0 {Tests => tests}/Library/Type/ObjectTypeTest.php | 0 {Tests => tests}/Library/Type/ScalarExtendTypeTest.php | 0 {Tests => tests}/Library/Type/ScalarTypeTest.php | 0 {Tests => tests}/Library/Type/SchemaDirectivesListTest.php | 0 {Tests => tests}/Library/Type/UnionTypeTest.php | 0 {Tests => tests}/Library/Utilities/ErrorContainerTraitTest.php | 0 {Tests => tests}/Library/Utilities/TypeUtilitiesTest.php | 0 {Tests => tests}/Library/Validator/RequestValidatorTest.php | 0 {Tests => tests}/Library/Validator/SchemaValidatorTest.php | 0 {Tests => tests}/Library/Validator/TypeValidationRuleTest.php | 0 {Tests => tests}/Parser/AstTest.php | 0 {Tests => tests}/Parser/ParserTest.php | 0 {Tests => tests}/Parser/RequestTest.php | 0 {Tests => tests}/Parser/VariableTest.php | 0 {Tests => tests}/Performance/LoadTest.php | 0 {Tests => tests}/Performance/NPlusOneTest.php | 0 {Tests => tests}/Schema/DeferredTest.php | 0 {Tests => tests}/Schema/FragmentsTest.php | 0 {Tests => tests}/Schema/InputObjectDefaultValuesTest.php | 0 {Tests => tests}/Schema/InputParseTest.php | 0 {Tests => tests}/Schema/IntrospectionTest.php | 0 {Tests => tests}/Schema/NonNullableTest.php | 0 {Tests => tests}/Schema/ProcessorTest.php | 0 {Tests => tests}/Schema/ResolveInfoTest.php | 0 {Tests => tests}/Schema/SchemaTest.php | 0 {Tests => tests}/Schema/VariablesTest.php | 0 {Tests => tests}/StarWars/Schema/CharacterInterface.php | 0 {Tests => tests}/StarWars/Schema/DroidType.php | 0 {Tests => tests}/StarWars/Schema/EpisodeEnum.php | 0 {Tests => tests}/StarWars/Schema/HumanType.php | 0 {Tests => tests}/StarWars/Schema/StarWarsData.php | 0 {Tests => tests}/StarWars/Schema/StarWarsQueryType.php | 0 {Tests => tests}/StarWars/Schema/StarWarsSchema.php | 0 {Tests => tests}/StarWars/StarWarsTest.php | 0 93 files changed, 2 insertions(+), 2 deletions(-) rename {Tests => tests}/DataProvider/TestConfig.php (100%) rename {Tests => tests}/DataProvider/TestConfigExtraFields.php (100%) rename {Tests => tests}/DataProvider/TestConfigInvalidRule.php (100%) rename {Tests => tests}/DataProvider/TestEmptySchema.php (100%) rename {Tests => tests}/DataProvider/TestEnumType.php (100%) rename {Tests => tests}/DataProvider/TestExtendedType.php (100%) rename {Tests => tests}/DataProvider/TestField.php (100%) rename {Tests => tests}/DataProvider/TestInputField.php (100%) rename {Tests => tests}/DataProvider/TestInputObjectType.php (100%) rename {Tests => tests}/DataProvider/TestInterfaceType.php (100%) rename {Tests => tests}/DataProvider/TestListType.php (100%) rename {Tests => tests}/DataProvider/TestMutationObjectType.php (100%) rename {Tests => tests}/DataProvider/TestObjectType.php (100%) rename {Tests => tests}/DataProvider/TestResolveInfo.php (100%) rename {Tests => tests}/DataProvider/TestScalarDataProvider.php (100%) rename {Tests => tests}/DataProvider/TestSchema.php (100%) rename {Tests => tests}/DataProvider/TestTimeType.php (100%) rename {Tests => tests}/DataProvider/TestUnionType.php (100%) rename {Tests => tests}/Issues/Issue109/Issue109Schema.php (100%) rename {Tests => tests}/Issues/Issue109/Issue109Test.php (100%) rename {Tests => tests}/Issues/Issue116/Issue116Test.php (100%) rename {Tests => tests}/Issues/Issue131/Issue131Test.php (100%) rename {Tests => tests}/Issues/Issue149/Issue149Test.php (100%) rename {Tests => tests}/Issues/Issue151/Issue151Test.php (100%) rename {Tests => tests}/Issues/Issue171/Issue171Schema.php (100%) rename {Tests => tests}/Issues/Issue171/Issue171Test.php (100%) rename {Tests => tests}/Issues/Issue193/Issue193Test.php (100%) rename {Tests => tests}/Issues/Issue194/ProcessorTest.php (100%) rename {Tests => tests}/Issues/Issue201/Issue201Test.php (100%) rename {Tests => tests}/Issues/Issue210/TypeServiceTest.php (100%) rename {Tests => tests}/Issues/Issue220/ResolvableObjectTraitTest.php (100%) rename {Tests => tests}/Issues/Issue90/Issue90Schema.php (100%) rename {Tests => tests}/Issues/Issue90/Issue90Test.php (100%) rename {Tests => tests}/Issues/Issue98/TypeServiceTest.php (100%) rename {Tests => tests}/Issues/Issue99/Issue99Schema.php (100%) rename {Tests => tests}/Issues/Issue99/Issue99Test.php (100%) rename {Tests => tests}/Library/Config/ConfigTest.php (100%) rename {Tests => tests}/Library/Config/FieldConfigTest.php (100%) rename {Tests => tests}/Library/Config/InterfaceTypeConfigTest.php (100%) rename {Tests => tests}/Library/Config/ObjectTypeConfigTest.php (100%) rename {Tests => tests}/Library/Field/ArgumentsAwareConfigTraitTest.php (100%) rename {Tests => tests}/Library/Field/FieldAwareConfigTraitTest.php (100%) rename {Tests => tests}/Library/Field/FieldTest.php (100%) rename {Tests => tests}/Library/Field/InputFieldTest.php (100%) rename {Tests => tests}/Library/Relay/ArrayConnectionTest.php (100%) rename {Tests => tests}/Library/Relay/CallableFetcherTest.php (100%) rename {Tests => tests}/Library/Relay/ConnectionTest.php (100%) rename {Tests => tests}/Library/Relay/GlobalIdFieldTest.php (100%) rename {Tests => tests}/Library/Relay/MutationTest.php (100%) rename {Tests => tests}/Library/Relay/NodeFieldTest.php (100%) rename {Tests => tests}/Library/Relay/NodeInterfaceTypeTest.php (100%) rename {Tests => tests}/Library/Relay/NodeTest.php (100%) rename {Tests => tests}/Library/Type/EnumTypeTest.php (100%) rename {Tests => tests}/Library/Type/InputObjectTypeTest.php (100%) rename {Tests => tests}/Library/Type/InterfaceTypeTest.php (100%) rename {Tests => tests}/Library/Type/ListTypeTest.php (100%) rename {Tests => tests}/Library/Type/NonNullTypeTest.php (100%) rename {Tests => tests}/Library/Type/ObjectTypeTest.php (100%) rename {Tests => tests}/Library/Type/ScalarExtendTypeTest.php (100%) rename {Tests => tests}/Library/Type/ScalarTypeTest.php (100%) rename {Tests => tests}/Library/Type/SchemaDirectivesListTest.php (100%) rename {Tests => tests}/Library/Type/UnionTypeTest.php (100%) rename {Tests => tests}/Library/Utilities/ErrorContainerTraitTest.php (100%) rename {Tests => tests}/Library/Utilities/TypeUtilitiesTest.php (100%) rename {Tests => tests}/Library/Validator/RequestValidatorTest.php (100%) rename {Tests => tests}/Library/Validator/SchemaValidatorTest.php (100%) rename {Tests => tests}/Library/Validator/TypeValidationRuleTest.php (100%) rename {Tests => tests}/Parser/AstTest.php (100%) rename {Tests => tests}/Parser/ParserTest.php (100%) rename {Tests => tests}/Parser/RequestTest.php (100%) rename {Tests => tests}/Parser/VariableTest.php (100%) rename {Tests => tests}/Performance/LoadTest.php (100%) rename {Tests => tests}/Performance/NPlusOneTest.php (100%) rename {Tests => tests}/Schema/DeferredTest.php (100%) rename {Tests => tests}/Schema/FragmentsTest.php (100%) rename {Tests => tests}/Schema/InputObjectDefaultValuesTest.php (100%) rename {Tests => tests}/Schema/InputParseTest.php (100%) rename {Tests => tests}/Schema/IntrospectionTest.php (100%) rename {Tests => tests}/Schema/NonNullableTest.php (100%) rename {Tests => tests}/Schema/ProcessorTest.php (100%) rename {Tests => tests}/Schema/ResolveInfoTest.php (100%) rename {Tests => tests}/Schema/SchemaTest.php (100%) rename {Tests => tests}/Schema/VariablesTest.php (100%) rename {Tests => tests}/StarWars/Schema/CharacterInterface.php (100%) rename {Tests => tests}/StarWars/Schema/DroidType.php (100%) rename {Tests => tests}/StarWars/Schema/EpisodeEnum.php (100%) rename {Tests => tests}/StarWars/Schema/HumanType.php (100%) rename {Tests => tests}/StarWars/Schema/StarWarsData.php (100%) rename {Tests => tests}/StarWars/Schema/StarWarsQueryType.php (100%) rename {Tests => tests}/StarWars/Schema/StarWarsSchema.php (100%) rename {Tests => tests}/StarWars/StarWarsTest.php (100%) diff --git a/composer.json b/composer.json index 8e641479..643c67a1 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ }, "autoload-dev": { "psr-4": { - "Youshido\\Tests\\": "Tests" + "Youshido\\Tests\\": "tests" } }, "config": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 01dca4d4..b14159b3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -3,7 +3,7 @@ - ./Tests + ./tests diff --git a/Tests/DataProvider/TestConfig.php b/tests/DataProvider/TestConfig.php similarity index 100% rename from Tests/DataProvider/TestConfig.php rename to tests/DataProvider/TestConfig.php diff --git a/Tests/DataProvider/TestConfigExtraFields.php b/tests/DataProvider/TestConfigExtraFields.php similarity index 100% rename from Tests/DataProvider/TestConfigExtraFields.php rename to tests/DataProvider/TestConfigExtraFields.php diff --git a/Tests/DataProvider/TestConfigInvalidRule.php b/tests/DataProvider/TestConfigInvalidRule.php similarity index 100% rename from Tests/DataProvider/TestConfigInvalidRule.php rename to tests/DataProvider/TestConfigInvalidRule.php diff --git a/Tests/DataProvider/TestEmptySchema.php b/tests/DataProvider/TestEmptySchema.php similarity index 100% rename from Tests/DataProvider/TestEmptySchema.php rename to tests/DataProvider/TestEmptySchema.php diff --git a/Tests/DataProvider/TestEnumType.php b/tests/DataProvider/TestEnumType.php similarity index 100% rename from Tests/DataProvider/TestEnumType.php rename to tests/DataProvider/TestEnumType.php diff --git a/Tests/DataProvider/TestExtendedType.php b/tests/DataProvider/TestExtendedType.php similarity index 100% rename from Tests/DataProvider/TestExtendedType.php rename to tests/DataProvider/TestExtendedType.php diff --git a/Tests/DataProvider/TestField.php b/tests/DataProvider/TestField.php similarity index 100% rename from Tests/DataProvider/TestField.php rename to tests/DataProvider/TestField.php diff --git a/Tests/DataProvider/TestInputField.php b/tests/DataProvider/TestInputField.php similarity index 100% rename from Tests/DataProvider/TestInputField.php rename to tests/DataProvider/TestInputField.php diff --git a/Tests/DataProvider/TestInputObjectType.php b/tests/DataProvider/TestInputObjectType.php similarity index 100% rename from Tests/DataProvider/TestInputObjectType.php rename to tests/DataProvider/TestInputObjectType.php diff --git a/Tests/DataProvider/TestInterfaceType.php b/tests/DataProvider/TestInterfaceType.php similarity index 100% rename from Tests/DataProvider/TestInterfaceType.php rename to tests/DataProvider/TestInterfaceType.php diff --git a/Tests/DataProvider/TestListType.php b/tests/DataProvider/TestListType.php similarity index 100% rename from Tests/DataProvider/TestListType.php rename to tests/DataProvider/TestListType.php diff --git a/Tests/DataProvider/TestMutationObjectType.php b/tests/DataProvider/TestMutationObjectType.php similarity index 100% rename from Tests/DataProvider/TestMutationObjectType.php rename to tests/DataProvider/TestMutationObjectType.php diff --git a/Tests/DataProvider/TestObjectType.php b/tests/DataProvider/TestObjectType.php similarity index 100% rename from Tests/DataProvider/TestObjectType.php rename to tests/DataProvider/TestObjectType.php diff --git a/Tests/DataProvider/TestResolveInfo.php b/tests/DataProvider/TestResolveInfo.php similarity index 100% rename from Tests/DataProvider/TestResolveInfo.php rename to tests/DataProvider/TestResolveInfo.php diff --git a/Tests/DataProvider/TestScalarDataProvider.php b/tests/DataProvider/TestScalarDataProvider.php similarity index 100% rename from Tests/DataProvider/TestScalarDataProvider.php rename to tests/DataProvider/TestScalarDataProvider.php diff --git a/Tests/DataProvider/TestSchema.php b/tests/DataProvider/TestSchema.php similarity index 100% rename from Tests/DataProvider/TestSchema.php rename to tests/DataProvider/TestSchema.php diff --git a/Tests/DataProvider/TestTimeType.php b/tests/DataProvider/TestTimeType.php similarity index 100% rename from Tests/DataProvider/TestTimeType.php rename to tests/DataProvider/TestTimeType.php diff --git a/Tests/DataProvider/TestUnionType.php b/tests/DataProvider/TestUnionType.php similarity index 100% rename from Tests/DataProvider/TestUnionType.php rename to tests/DataProvider/TestUnionType.php diff --git a/Tests/Issues/Issue109/Issue109Schema.php b/tests/Issues/Issue109/Issue109Schema.php similarity index 100% rename from Tests/Issues/Issue109/Issue109Schema.php rename to tests/Issues/Issue109/Issue109Schema.php diff --git a/Tests/Issues/Issue109/Issue109Test.php b/tests/Issues/Issue109/Issue109Test.php similarity index 100% rename from Tests/Issues/Issue109/Issue109Test.php rename to tests/Issues/Issue109/Issue109Test.php diff --git a/Tests/Issues/Issue116/Issue116Test.php b/tests/Issues/Issue116/Issue116Test.php similarity index 100% rename from Tests/Issues/Issue116/Issue116Test.php rename to tests/Issues/Issue116/Issue116Test.php diff --git a/Tests/Issues/Issue131/Issue131Test.php b/tests/Issues/Issue131/Issue131Test.php similarity index 100% rename from Tests/Issues/Issue131/Issue131Test.php rename to tests/Issues/Issue131/Issue131Test.php diff --git a/Tests/Issues/Issue149/Issue149Test.php b/tests/Issues/Issue149/Issue149Test.php similarity index 100% rename from Tests/Issues/Issue149/Issue149Test.php rename to tests/Issues/Issue149/Issue149Test.php diff --git a/Tests/Issues/Issue151/Issue151Test.php b/tests/Issues/Issue151/Issue151Test.php similarity index 100% rename from Tests/Issues/Issue151/Issue151Test.php rename to tests/Issues/Issue151/Issue151Test.php diff --git a/Tests/Issues/Issue171/Issue171Schema.php b/tests/Issues/Issue171/Issue171Schema.php similarity index 100% rename from Tests/Issues/Issue171/Issue171Schema.php rename to tests/Issues/Issue171/Issue171Schema.php diff --git a/Tests/Issues/Issue171/Issue171Test.php b/tests/Issues/Issue171/Issue171Test.php similarity index 100% rename from Tests/Issues/Issue171/Issue171Test.php rename to tests/Issues/Issue171/Issue171Test.php diff --git a/Tests/Issues/Issue193/Issue193Test.php b/tests/Issues/Issue193/Issue193Test.php similarity index 100% rename from Tests/Issues/Issue193/Issue193Test.php rename to tests/Issues/Issue193/Issue193Test.php diff --git a/Tests/Issues/Issue194/ProcessorTest.php b/tests/Issues/Issue194/ProcessorTest.php similarity index 100% rename from Tests/Issues/Issue194/ProcessorTest.php rename to tests/Issues/Issue194/ProcessorTest.php diff --git a/Tests/Issues/Issue201/Issue201Test.php b/tests/Issues/Issue201/Issue201Test.php similarity index 100% rename from Tests/Issues/Issue201/Issue201Test.php rename to tests/Issues/Issue201/Issue201Test.php diff --git a/Tests/Issues/Issue210/TypeServiceTest.php b/tests/Issues/Issue210/TypeServiceTest.php similarity index 100% rename from Tests/Issues/Issue210/TypeServiceTest.php rename to tests/Issues/Issue210/TypeServiceTest.php diff --git a/Tests/Issues/Issue220/ResolvableObjectTraitTest.php b/tests/Issues/Issue220/ResolvableObjectTraitTest.php similarity index 100% rename from Tests/Issues/Issue220/ResolvableObjectTraitTest.php rename to tests/Issues/Issue220/ResolvableObjectTraitTest.php diff --git a/Tests/Issues/Issue90/Issue90Schema.php b/tests/Issues/Issue90/Issue90Schema.php similarity index 100% rename from Tests/Issues/Issue90/Issue90Schema.php rename to tests/Issues/Issue90/Issue90Schema.php diff --git a/Tests/Issues/Issue90/Issue90Test.php b/tests/Issues/Issue90/Issue90Test.php similarity index 100% rename from Tests/Issues/Issue90/Issue90Test.php rename to tests/Issues/Issue90/Issue90Test.php diff --git a/Tests/Issues/Issue98/TypeServiceTest.php b/tests/Issues/Issue98/TypeServiceTest.php similarity index 100% rename from Tests/Issues/Issue98/TypeServiceTest.php rename to tests/Issues/Issue98/TypeServiceTest.php diff --git a/Tests/Issues/Issue99/Issue99Schema.php b/tests/Issues/Issue99/Issue99Schema.php similarity index 100% rename from Tests/Issues/Issue99/Issue99Schema.php rename to tests/Issues/Issue99/Issue99Schema.php diff --git a/Tests/Issues/Issue99/Issue99Test.php b/tests/Issues/Issue99/Issue99Test.php similarity index 100% rename from Tests/Issues/Issue99/Issue99Test.php rename to tests/Issues/Issue99/Issue99Test.php diff --git a/Tests/Library/Config/ConfigTest.php b/tests/Library/Config/ConfigTest.php similarity index 100% rename from Tests/Library/Config/ConfigTest.php rename to tests/Library/Config/ConfigTest.php diff --git a/Tests/Library/Config/FieldConfigTest.php b/tests/Library/Config/FieldConfigTest.php similarity index 100% rename from Tests/Library/Config/FieldConfigTest.php rename to tests/Library/Config/FieldConfigTest.php diff --git a/Tests/Library/Config/InterfaceTypeConfigTest.php b/tests/Library/Config/InterfaceTypeConfigTest.php similarity index 100% rename from Tests/Library/Config/InterfaceTypeConfigTest.php rename to tests/Library/Config/InterfaceTypeConfigTest.php diff --git a/Tests/Library/Config/ObjectTypeConfigTest.php b/tests/Library/Config/ObjectTypeConfigTest.php similarity index 100% rename from Tests/Library/Config/ObjectTypeConfigTest.php rename to tests/Library/Config/ObjectTypeConfigTest.php diff --git a/Tests/Library/Field/ArgumentsAwareConfigTraitTest.php b/tests/Library/Field/ArgumentsAwareConfigTraitTest.php similarity index 100% rename from Tests/Library/Field/ArgumentsAwareConfigTraitTest.php rename to tests/Library/Field/ArgumentsAwareConfigTraitTest.php diff --git a/Tests/Library/Field/FieldAwareConfigTraitTest.php b/tests/Library/Field/FieldAwareConfigTraitTest.php similarity index 100% rename from Tests/Library/Field/FieldAwareConfigTraitTest.php rename to tests/Library/Field/FieldAwareConfigTraitTest.php diff --git a/Tests/Library/Field/FieldTest.php b/tests/Library/Field/FieldTest.php similarity index 100% rename from Tests/Library/Field/FieldTest.php rename to tests/Library/Field/FieldTest.php diff --git a/Tests/Library/Field/InputFieldTest.php b/tests/Library/Field/InputFieldTest.php similarity index 100% rename from Tests/Library/Field/InputFieldTest.php rename to tests/Library/Field/InputFieldTest.php diff --git a/Tests/Library/Relay/ArrayConnectionTest.php b/tests/Library/Relay/ArrayConnectionTest.php similarity index 100% rename from Tests/Library/Relay/ArrayConnectionTest.php rename to tests/Library/Relay/ArrayConnectionTest.php diff --git a/Tests/Library/Relay/CallableFetcherTest.php b/tests/Library/Relay/CallableFetcherTest.php similarity index 100% rename from Tests/Library/Relay/CallableFetcherTest.php rename to tests/Library/Relay/CallableFetcherTest.php diff --git a/Tests/Library/Relay/ConnectionTest.php b/tests/Library/Relay/ConnectionTest.php similarity index 100% rename from Tests/Library/Relay/ConnectionTest.php rename to tests/Library/Relay/ConnectionTest.php diff --git a/Tests/Library/Relay/GlobalIdFieldTest.php b/tests/Library/Relay/GlobalIdFieldTest.php similarity index 100% rename from Tests/Library/Relay/GlobalIdFieldTest.php rename to tests/Library/Relay/GlobalIdFieldTest.php diff --git a/Tests/Library/Relay/MutationTest.php b/tests/Library/Relay/MutationTest.php similarity index 100% rename from Tests/Library/Relay/MutationTest.php rename to tests/Library/Relay/MutationTest.php diff --git a/Tests/Library/Relay/NodeFieldTest.php b/tests/Library/Relay/NodeFieldTest.php similarity index 100% rename from Tests/Library/Relay/NodeFieldTest.php rename to tests/Library/Relay/NodeFieldTest.php diff --git a/Tests/Library/Relay/NodeInterfaceTypeTest.php b/tests/Library/Relay/NodeInterfaceTypeTest.php similarity index 100% rename from Tests/Library/Relay/NodeInterfaceTypeTest.php rename to tests/Library/Relay/NodeInterfaceTypeTest.php diff --git a/Tests/Library/Relay/NodeTest.php b/tests/Library/Relay/NodeTest.php similarity index 100% rename from Tests/Library/Relay/NodeTest.php rename to tests/Library/Relay/NodeTest.php diff --git a/Tests/Library/Type/EnumTypeTest.php b/tests/Library/Type/EnumTypeTest.php similarity index 100% rename from Tests/Library/Type/EnumTypeTest.php rename to tests/Library/Type/EnumTypeTest.php diff --git a/Tests/Library/Type/InputObjectTypeTest.php b/tests/Library/Type/InputObjectTypeTest.php similarity index 100% rename from Tests/Library/Type/InputObjectTypeTest.php rename to tests/Library/Type/InputObjectTypeTest.php diff --git a/Tests/Library/Type/InterfaceTypeTest.php b/tests/Library/Type/InterfaceTypeTest.php similarity index 100% rename from Tests/Library/Type/InterfaceTypeTest.php rename to tests/Library/Type/InterfaceTypeTest.php diff --git a/Tests/Library/Type/ListTypeTest.php b/tests/Library/Type/ListTypeTest.php similarity index 100% rename from Tests/Library/Type/ListTypeTest.php rename to tests/Library/Type/ListTypeTest.php diff --git a/Tests/Library/Type/NonNullTypeTest.php b/tests/Library/Type/NonNullTypeTest.php similarity index 100% rename from Tests/Library/Type/NonNullTypeTest.php rename to tests/Library/Type/NonNullTypeTest.php diff --git a/Tests/Library/Type/ObjectTypeTest.php b/tests/Library/Type/ObjectTypeTest.php similarity index 100% rename from Tests/Library/Type/ObjectTypeTest.php rename to tests/Library/Type/ObjectTypeTest.php diff --git a/Tests/Library/Type/ScalarExtendTypeTest.php b/tests/Library/Type/ScalarExtendTypeTest.php similarity index 100% rename from Tests/Library/Type/ScalarExtendTypeTest.php rename to tests/Library/Type/ScalarExtendTypeTest.php diff --git a/Tests/Library/Type/ScalarTypeTest.php b/tests/Library/Type/ScalarTypeTest.php similarity index 100% rename from Tests/Library/Type/ScalarTypeTest.php rename to tests/Library/Type/ScalarTypeTest.php diff --git a/Tests/Library/Type/SchemaDirectivesListTest.php b/tests/Library/Type/SchemaDirectivesListTest.php similarity index 100% rename from Tests/Library/Type/SchemaDirectivesListTest.php rename to tests/Library/Type/SchemaDirectivesListTest.php diff --git a/Tests/Library/Type/UnionTypeTest.php b/tests/Library/Type/UnionTypeTest.php similarity index 100% rename from Tests/Library/Type/UnionTypeTest.php rename to tests/Library/Type/UnionTypeTest.php diff --git a/Tests/Library/Utilities/ErrorContainerTraitTest.php b/tests/Library/Utilities/ErrorContainerTraitTest.php similarity index 100% rename from Tests/Library/Utilities/ErrorContainerTraitTest.php rename to tests/Library/Utilities/ErrorContainerTraitTest.php diff --git a/Tests/Library/Utilities/TypeUtilitiesTest.php b/tests/Library/Utilities/TypeUtilitiesTest.php similarity index 100% rename from Tests/Library/Utilities/TypeUtilitiesTest.php rename to tests/Library/Utilities/TypeUtilitiesTest.php diff --git a/Tests/Library/Validator/RequestValidatorTest.php b/tests/Library/Validator/RequestValidatorTest.php similarity index 100% rename from Tests/Library/Validator/RequestValidatorTest.php rename to tests/Library/Validator/RequestValidatorTest.php diff --git a/Tests/Library/Validator/SchemaValidatorTest.php b/tests/Library/Validator/SchemaValidatorTest.php similarity index 100% rename from Tests/Library/Validator/SchemaValidatorTest.php rename to tests/Library/Validator/SchemaValidatorTest.php diff --git a/Tests/Library/Validator/TypeValidationRuleTest.php b/tests/Library/Validator/TypeValidationRuleTest.php similarity index 100% rename from Tests/Library/Validator/TypeValidationRuleTest.php rename to tests/Library/Validator/TypeValidationRuleTest.php diff --git a/Tests/Parser/AstTest.php b/tests/Parser/AstTest.php similarity index 100% rename from Tests/Parser/AstTest.php rename to tests/Parser/AstTest.php diff --git a/Tests/Parser/ParserTest.php b/tests/Parser/ParserTest.php similarity index 100% rename from Tests/Parser/ParserTest.php rename to tests/Parser/ParserTest.php diff --git a/Tests/Parser/RequestTest.php b/tests/Parser/RequestTest.php similarity index 100% rename from Tests/Parser/RequestTest.php rename to tests/Parser/RequestTest.php diff --git a/Tests/Parser/VariableTest.php b/tests/Parser/VariableTest.php similarity index 100% rename from Tests/Parser/VariableTest.php rename to tests/Parser/VariableTest.php diff --git a/Tests/Performance/LoadTest.php b/tests/Performance/LoadTest.php similarity index 100% rename from Tests/Performance/LoadTest.php rename to tests/Performance/LoadTest.php diff --git a/Tests/Performance/NPlusOneTest.php b/tests/Performance/NPlusOneTest.php similarity index 100% rename from Tests/Performance/NPlusOneTest.php rename to tests/Performance/NPlusOneTest.php diff --git a/Tests/Schema/DeferredTest.php b/tests/Schema/DeferredTest.php similarity index 100% rename from Tests/Schema/DeferredTest.php rename to tests/Schema/DeferredTest.php diff --git a/Tests/Schema/FragmentsTest.php b/tests/Schema/FragmentsTest.php similarity index 100% rename from Tests/Schema/FragmentsTest.php rename to tests/Schema/FragmentsTest.php diff --git a/Tests/Schema/InputObjectDefaultValuesTest.php b/tests/Schema/InputObjectDefaultValuesTest.php similarity index 100% rename from Tests/Schema/InputObjectDefaultValuesTest.php rename to tests/Schema/InputObjectDefaultValuesTest.php diff --git a/Tests/Schema/InputParseTest.php b/tests/Schema/InputParseTest.php similarity index 100% rename from Tests/Schema/InputParseTest.php rename to tests/Schema/InputParseTest.php diff --git a/Tests/Schema/IntrospectionTest.php b/tests/Schema/IntrospectionTest.php similarity index 100% rename from Tests/Schema/IntrospectionTest.php rename to tests/Schema/IntrospectionTest.php diff --git a/Tests/Schema/NonNullableTest.php b/tests/Schema/NonNullableTest.php similarity index 100% rename from Tests/Schema/NonNullableTest.php rename to tests/Schema/NonNullableTest.php diff --git a/Tests/Schema/ProcessorTest.php b/tests/Schema/ProcessorTest.php similarity index 100% rename from Tests/Schema/ProcessorTest.php rename to tests/Schema/ProcessorTest.php diff --git a/Tests/Schema/ResolveInfoTest.php b/tests/Schema/ResolveInfoTest.php similarity index 100% rename from Tests/Schema/ResolveInfoTest.php rename to tests/Schema/ResolveInfoTest.php diff --git a/Tests/Schema/SchemaTest.php b/tests/Schema/SchemaTest.php similarity index 100% rename from Tests/Schema/SchemaTest.php rename to tests/Schema/SchemaTest.php diff --git a/Tests/Schema/VariablesTest.php b/tests/Schema/VariablesTest.php similarity index 100% rename from Tests/Schema/VariablesTest.php rename to tests/Schema/VariablesTest.php diff --git a/Tests/StarWars/Schema/CharacterInterface.php b/tests/StarWars/Schema/CharacterInterface.php similarity index 100% rename from Tests/StarWars/Schema/CharacterInterface.php rename to tests/StarWars/Schema/CharacterInterface.php diff --git a/Tests/StarWars/Schema/DroidType.php b/tests/StarWars/Schema/DroidType.php similarity index 100% rename from Tests/StarWars/Schema/DroidType.php rename to tests/StarWars/Schema/DroidType.php diff --git a/Tests/StarWars/Schema/EpisodeEnum.php b/tests/StarWars/Schema/EpisodeEnum.php similarity index 100% rename from Tests/StarWars/Schema/EpisodeEnum.php rename to tests/StarWars/Schema/EpisodeEnum.php diff --git a/Tests/StarWars/Schema/HumanType.php b/tests/StarWars/Schema/HumanType.php similarity index 100% rename from Tests/StarWars/Schema/HumanType.php rename to tests/StarWars/Schema/HumanType.php diff --git a/Tests/StarWars/Schema/StarWarsData.php b/tests/StarWars/Schema/StarWarsData.php similarity index 100% rename from Tests/StarWars/Schema/StarWarsData.php rename to tests/StarWars/Schema/StarWarsData.php diff --git a/Tests/StarWars/Schema/StarWarsQueryType.php b/tests/StarWars/Schema/StarWarsQueryType.php similarity index 100% rename from Tests/StarWars/Schema/StarWarsQueryType.php rename to tests/StarWars/Schema/StarWarsQueryType.php diff --git a/Tests/StarWars/Schema/StarWarsSchema.php b/tests/StarWars/Schema/StarWarsSchema.php similarity index 100% rename from Tests/StarWars/Schema/StarWarsSchema.php rename to tests/StarWars/Schema/StarWarsSchema.php diff --git a/Tests/StarWars/StarWarsTest.php b/tests/StarWars/StarWarsTest.php similarity index 100% rename from Tests/StarWars/StarWarsTest.php rename to tests/StarWars/StarWarsTest.php From a69f8545e809cc55e1b4c5ba3cd163121ff2b482 Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Wed, 13 Nov 2019 16:30:02 +0200 Subject: [PATCH 2/3] Remove obsolete upgrade instructions --- UPGRADE-1.1.md | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 UPGRADE-1.1.md diff --git a/UPGRADE-1.1.md b/UPGRADE-1.1.md deleted file mode 100644 index d5202974..00000000 --- a/UPGRADE-1.1.md +++ /dev/null @@ -1,41 +0,0 @@ -# Upgrade to 1.1 - - We made important changes to the structure of the GraphQL Schema to be more consistent with the original specification and to be able to implement Relay. - -### Processor - Processor cannot really exist without the Schema, so it was added as a required parameter to constructor: - Before: - ```php - $processor = new Processor(); - $processor->setSchema(new Schema([ - 'query' => $rootQueryType - ])); - ``` - After: - ```php - $processor = new Processor((new Schema([ - 'query' => $rootQueryType - ])); - ``` - - Method `->processRequest($payload, $variables = [])` changed to `->processPayload(string $payload, $variables = [])` - -### Field/Type definition - Schema definition has changed so that `resolve` function is no longer exists inside `Type` and instead moved to where it belongs – to the `Field` object that was introduced in `1.2`. - Before: - ```php - $userType = new ObjectType([ - 'name' => 'User', - 'fields' => [ - 'id' => new IntType(), - 'name' => new StringType(), - ], - 'resolve' => function($value, $args, $type) { - return [ - 'id' => 1, - 'name' => 'John' - ]; - } - ]); - - ``` From 5f647a15486affe6ff8fa5087cb035cc25713406 Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Wed, 13 Nov 2019 16:39:12 +0200 Subject: [PATCH 3/3] Rename the change log to just CHANGELOG and update it --- CHANGELOG-1.1.md | 22 ---------------------- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 22 deletions(-) delete mode 100644 CHANGELOG-1.1.md create mode 100644 CHANGELOG.md diff --git a/CHANGELOG-1.1.md b/CHANGELOG-1.1.md deleted file mode 100644 index 11a29a6d..00000000 --- a/CHANGELOG-1.1.md +++ /dev/null @@ -1,22 +0,0 @@ -# Changelog - -### v1.1 – Relay support and Schema structure - -#### General changes -- Relay support added -- Test coverage 100% added -- `AbstractField` was introduced and `AbstractType` was changed (see [upgrade-1.2](UPGRADE-1.2.md)) - -#### Processor -- Processor now requires an `AbstractSchema` in `__construct` -- `->processRequest($payload, $variables = [])` changed to `->processPayload(string $payload, $variables = [])` - -#### Type -- parameter `resolve` was removed from config -- parameter `args` was removed from config -- parameter `fields` is now required when you create an instance of `ObjectType` - -#### Field -- `AbstractField` was introduced -- `Field` class now has to be used to define a field inside `fields` config -- abstract `resolve` methods added diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..5ff72228 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,33 @@ +# Changelog + +Please update this file right before tagging a new release + +## Unreleased + +* fix some README badges +* add a more robust implementation for `TypeService::getPropertyValue()` +* fix PhpStorm inspection performance complaints +* fix a bug that prevented using `null` as a default value +* add support for error extensions +* throw `ConfigurationException` when trying to add two types with the same name to the schema +* add a `getImplementations()` method to `AbstractInterfaceType`, can be used to properly discover all possible types during introspection +* run Travis CI on PHP 7.2 and 7.3 too +* run phpstan static analysis (level 1 only) during Travis CI builds +* rename the `Tests` directory to `tests` for consistency with other projects +* remove some obsolete documentation + +## v1.6.0 + +* fix the Travis CI build for PHP 5.5 +* improve examples somewhat +* make `Node` stricter when validating input +* return null not just when the field is scalar but whenever it's non-null + +## v1.5.5 + +* add missing directive locations +* add a `totalCount` field to connections +* fix a regression introduced in #151 +* add a type/field lookup cache for improved performance +* add support for nested deferred resolvers +* properly handle null values in `BooleanType`