add functional test for docblock model describer

This commit is contained in:
David Buchmann 2017-12-19 08:56:00 +01:00
parent 373516387f
commit 66872da552
2 changed files with 7 additions and 0 deletions

View File

@ -89,6 +89,11 @@ class JMSUser
private $bestFriend; private $bestFriend;
/** /**
* Whether this user is enabled or disabled.
*
* Only enabled users may be used in actions.
*
* @var string
* @Serializer\Type("string") * @Serializer\Type("string")
* @Serializer\Expose * @Serializer\Expose
* *

View File

@ -55,6 +55,8 @@ class JMSFunctionalTest extends WebTestCase
], ],
'status' => [ 'status' => [
'type' => 'string', 'type' => 'string',
'title' => 'Whether this user is enabled or disabled.',
'description' => 'Only enabled users may be used in actions.',
'enum' => ['disabled', 'enabled'], 'enum' => ['disabled', 'enabled'],
], ],
], ],