Skip to content

Commit de29b62

Browse files
committed
Actualised data providers keys
1 parent da0883e commit de29b62

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

tests/integration/TransferGenerator/Config/Loader/ConfigLoaderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ public static function invalidConfigDataProvider(): Generator
4545
{
4646
yield 'config file does not exist' => ['config-file-does-not-exist.config.yml'];
4747

48-
yield 'missed required keys' => ['missed-required-keys.config.yml'];
48+
yield 'missing required keys' => ['missed-required-keys.config.yml'];
4949

50-
yield 'definition path is not local' => ['definition-path-is-not-exist.config.yml'];
50+
yield 'definition path does not exist' => ['definition-path-does-not-exist.config.yml'];
5151

52-
yield 'definition path is not exist' => ['definition-path-is-not-local.config.yml'];
52+
yield 'definition path is not local' => ['definition-path-is-not-local.config.yml'];
5353

5454
yield 'invalid namespace' => ['invalid-transfer-namespace.config.yml'];
5555

@@ -59,6 +59,6 @@ public static function invalidConfigDataProvider(): Generator
5959

6060
yield 'invalid definition root key' => ['invalid-definition-root-key.config.yml'];
6161

62-
yield 'transfer path is not exist' => ['transfer-path-is-not-local.config.yml'];
62+
yield 'transfer path is not local' => ['transfer-path-is-not-local.config.yml'];
6363
}
6464
}

tests/integration/TransferGenerator/TransferGeneratorFacadeErrorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static function invalidDefinitionDataProvider(): Generator
113113
'expectedMessage' => 'Invalid class name',
114114
];
115115

116-
yield 'missed property type should return error' => [
116+
yield 'missing property type should return error' => [
117117
'configCaseName' => 'missed-type',
118118
'expectedMessage' => 'Property "addressUuid" type definition is missing or set multiple times.',
119119
];
@@ -143,7 +143,7 @@ public static function invalidDefinitionDataProvider(): Generator
143143
'expectedMessage' => 'Properties for class "AddressStatisticsTransfer" are not defined.',
144144
];
145145

146-
yield 'definitions not found should return error' => [
146+
yield 'definitions were not found should return error' => [
147147
'configCaseName' => 'empty-definition-directory',
148148
'expectedMessage' => 'Missing Transfer Object definitions.',
149149
];

tests/integration/TransferGenerator/data/config/error/definition-path-is-not-exist.config.yml renamed to tests/integration/TransferGenerator/data/config/error/definition-path-does-not-exist.config.yml

File renamed without changes.

tests/unit/DefinitionGenerator/Content/Expander/TransferTypeBuilderExpanderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testApplicableTransferType(GetTypeEnum $type, array $propertyVal
5858
*/
5959
public static function applicableTransferTypeDataProvider(): Generator
6060
{
61-
yield 'type is array and property value is an array with key valid variable name should expect true' => [
61+
yield 'type is array and property value is an array with a valid variable name key should expect true' => [
6262
'type' => GetTypeEnum::array,
6363
'propertyValue' => [
6464
'product' => ['sku' => 123],
@@ -86,7 +86,7 @@ public static function applicableTransferTypeDataProvider(): Generator
8686
'expected' => false,
8787
];
8888

89-
yield 'type is array and property value is an array with key is invalid variable name should expect false' => [
89+
yield 'type is array and property value is an array with an invalid variable name key should expect false' => [
9090
'type' => GetTypeEnum::array,
9191
'propertyValue' => [
9292
'2024-12-26' => ['sku' => 123],

tests/unit/DefinitionGenerator/Generator/Render/DefinitionRenderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static function successfulRenderTestDoxFormatter(array $propertyData, str
6363

6464
public static function successfulRenderDataProvider(): Generator
6565
{
66-
yield 'transfer object with build in property type' => [
66+
yield 'transfer object with built-in property type' => [
6767
'propertyData' => [
6868
DefinitionPropertyTransfer::PROPERTY_NAME_PROP => 'testProperty',
6969
DefinitionPropertyTransfer::BUILT_IN_TYPE_PROP => [

tests/unit/TransferGenerator/Generator/Render/Template/TemplateHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function getRequiredDataProvider(): Generator
6464
'expected' => '',
6565
];
6666

67-
yield 'property is nullable but with intersection type should return empty string' => [
67+
yield 'property is nullable but with an intersection type should return an empty string' => [
6868
'templateData' => [
6969
TemplateTransfer::PROPERTIES_PROP => [
7070
'test' => 'TestTransfer&TTransferInterface',
@@ -90,7 +90,7 @@ public static function getRequiredDataProvider(): Generator
9090
'expected' => 'null|',
9191
];
9292

93-
yield 'property is nullable without intersection or union should return null type' => [
93+
yield 'property is nullable without intersection or union should return the null type' => [
9494
'templateData' => [
9595
TemplateTransfer::PROPERTIES_PROP => [
9696
'test' => 'TestTransfer',

0 commit comments

Comments
 (0)