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