Skip to content

Commit

Permalink
Typing the 255 length to make a test case for a bug just fixed
Browse files Browse the repository at this point in the history
If you allow the default to be used, 255 is an int. If you type it,
it's a string, and the Validator is responsible for converting to
an integer. This change is to type in 255, so that the test proves
this conversion is done correctly (if it's not, the annotation generates
improperly).
  • Loading branch information
weaverryan committed Mar 21, 2018
1 parent 480783e commit c936864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Maker/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public function getCommandEntityTests()
// add not additional fields
'name',
'string',
'', // length (default 255)
'255', // length
// nullable
'y',
'createdAt',
Expand Down

0 comments on commit c936864

Please sign in to comment.