mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-13 04:59:24 +03:00
Fix build
This commit is contained in:
parent
65c52577d8
commit
2a87244869
@ -43,6 +43,6 @@ class TestType extends AbstractType
|
|||||||
|
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
return 'test_type';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,18 +81,18 @@ _create test_
|
|||||||
|
|
||||||
#### Parameters ####
|
#### Parameters ####
|
||||||
|
|
||||||
test_type[a]:
|
a:
|
||||||
|
|
||||||
* type: string
|
* type: string
|
||||||
* required: true
|
* required: true
|
||||||
* description: A nice description
|
* description: A nice description
|
||||||
|
|
||||||
test_type[b]:
|
b:
|
||||||
|
|
||||||
* type: string
|
* type: string
|
||||||
* required: false
|
* required: false
|
||||||
|
|
||||||
test_type[c]:
|
c:
|
||||||
|
|
||||||
* type: boolean
|
* type: boolean
|
||||||
* required: true
|
* required: true
|
||||||
@ -109,18 +109,18 @@ _create test_
|
|||||||
|
|
||||||
#### Parameters ####
|
#### Parameters ####
|
||||||
|
|
||||||
test_type[a]:
|
a:
|
||||||
|
|
||||||
* type: string
|
* type: string
|
||||||
* required: true
|
* required: true
|
||||||
* description: A nice description
|
* description: A nice description
|
||||||
|
|
||||||
test_type[b]:
|
b:
|
||||||
|
|
||||||
* type: string
|
* type: string
|
||||||
* required: false
|
* required: false
|
||||||
|
|
||||||
test_type[c]:
|
c:
|
||||||
|
|
||||||
* type: boolean
|
* type: boolean
|
||||||
* required: true
|
* required: true
|
||||||
|
@ -104,22 +104,19 @@ class SimpleFormatterTest extends WebTestCase
|
|||||||
'description' => 'create test',
|
'description' => 'create test',
|
||||||
'parameters' =>
|
'parameters' =>
|
||||||
array(
|
array(
|
||||||
'test_type[a]' =>
|
'a' => array(
|
||||||
array(
|
|
||||||
'dataType' => 'string',
|
'dataType' => 'string',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'description' => 'A nice description',
|
'description' => 'A nice description',
|
||||||
'readonly' => false,
|
'readonly' => false,
|
||||||
),
|
),
|
||||||
'test_type[b]' =>
|
'b' => array(
|
||||||
array(
|
|
||||||
'dataType' => 'string',
|
'dataType' => 'string',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'description' => '',
|
'description' => '',
|
||||||
'readonly' => false,
|
'readonly' => false,
|
||||||
),
|
),
|
||||||
'test_type[c]' =>
|
'c' => array(
|
||||||
array(
|
|
||||||
'dataType' => 'boolean',
|
'dataType' => 'boolean',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'description' => '',
|
'description' => '',
|
||||||
@ -147,22 +144,19 @@ class SimpleFormatterTest extends WebTestCase
|
|||||||
'description' => 'create test',
|
'description' => 'create test',
|
||||||
'parameters' =>
|
'parameters' =>
|
||||||
array(
|
array(
|
||||||
'test_type[a]' =>
|
'a' => array(
|
||||||
array(
|
|
||||||
'dataType' => 'string',
|
'dataType' => 'string',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'description' => 'A nice description',
|
'description' => 'A nice description',
|
||||||
'readonly' => false,
|
'readonly' => false,
|
||||||
),
|
),
|
||||||
'test_type[b]' =>
|
'b' => array(
|
||||||
array(
|
|
||||||
'dataType' => 'string',
|
'dataType' => 'string',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'description' => '',
|
'description' => '',
|
||||||
'readonly' => false,
|
'readonly' => false,
|
||||||
),
|
),
|
||||||
'test_type[c]' =>
|
'c' => array(
|
||||||
array(
|
|
||||||
'dataType' => 'boolean',
|
'dataType' => 'boolean',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'description' => '',
|
'description' => '',
|
||||||
|
@ -32,38 +32,45 @@ class FormTypeParserTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function dataTestParse()
|
public function dataTestParse()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
array('Nelmio\ApiDocBundle\Tests\Fixtures\Form\TestType', array(
|
array(
|
||||||
'a' => array(
|
array('class' => 'Nelmio\ApiDocBundle\Tests\Fixtures\Form\TestType'),
|
||||||
'dataType' => 'string',
|
array(
|
||||||
'required' => true,
|
'a' => array(
|
||||||
'description' => 'A nice description',
|
'dataType' => 'string',
|
||||||
'readonly' => false
|
'required' => true,
|
||||||
),
|
'description' => 'A nice description',
|
||||||
'b' => array(
|
'readonly' => false
|
||||||
'dataType' => 'string',
|
),
|
||||||
'required' => true,
|
'b' => array(
|
||||||
'description' => '',
|
'dataType' => 'string',
|
||||||
'readonly' => false
|
'required' => true,
|
||||||
),
|
'description' => '',
|
||||||
'c' => array(
|
'readonly' => false
|
||||||
'dataType' => 'boolean',
|
),
|
||||||
'required' => true,
|
'c' => array(
|
||||||
'description' => '',
|
'dataType' => 'boolean',
|
||||||
'readonly' => false
|
'required' => true,
|
||||||
))
|
'description' => '',
|
||||||
|
'readonly' => false
|
||||||
|
)
|
||||||
|
)
|
||||||
),
|
),
|
||||||
array('Nelmio\ApiDocBundle\Tests\Fixtures\Form\CollectionType', array(
|
array(
|
||||||
'a' => array(
|
array('class' => 'Nelmio\ApiDocBundle\Tests\Fixtures\Form\CollectionType'),
|
||||||
'dataType' => 'array of strings',
|
array(
|
||||||
'required' => true,
|
'collection_type[a]' => array(
|
||||||
'description' => '',
|
'dataType' => 'array of strings',
|
||||||
'readonly' => false
|
'required' => true,
|
||||||
), 'b' => array(
|
'description' => '',
|
||||||
'dataType' => 'string',
|
'readonly' => false
|
||||||
'required' => true,
|
),
|
||||||
'description' => '',
|
'collection_type[b]' => array(
|
||||||
'readonly' => false
|
'dataType' => 'string',
|
||||||
))
|
'required' => true,
|
||||||
|
'description' => '',
|
||||||
|
'readonly' => false
|
||||||
|
)
|
||||||
|
)
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user