Skip to content

Commit 26393b9

Browse files
committed
test: update unit to assert typed property declarations in generated scalar stub
1 parent 342f363 commit 26393b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Unit/Console/ScalarMakeCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public static function dataForMakeCommand(): array
3737
'inputName' => 'Example',
3838
'expectedFilename' => 'GraphQL/Scalars/Example.php',
3939
'expectedClassDefinition' => 'Example extends ScalarType implements TypeConvertible',
40-
'expectedGraphqlName' => '\$name = \'Example\';',
40+
'expectedGraphqlName' => 'public string \\$name = \'Example\';',
4141
],
4242
'ExampleScalar' => [
4343
'inputName' => 'ExampleScalar',
4444
'expectedFilename' => 'GraphQL/Scalars/ExampleScalar.php',
4545
'expectedClassDefinition' => 'ExampleScalar extends ScalarType implements TypeConvertible',
46-
'expectedGraphqlName' => '\$name = \'ExampleScalar\';',
46+
'expectedGraphqlName' => 'public string \\$name = \'ExampleScalar\';',
4747
],
4848
];
4949
}

0 commit comments

Comments
 (0)