mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Remove a test since #811 changes the behavior
This commit is contained in:
parent
4b16f4e068
commit
79716d49f5
@ -182,27 +182,6 @@ class ApiDocTest extends TestCase
|
|||||||
$annot = new ApiDoc($data);
|
$annot = new ApiDoc($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testConstructNoFiltersIfFormTypeDefined()
|
|
||||||
{
|
|
||||||
$data = array(
|
|
||||||
'resource' => true,
|
|
||||||
'description' => 'Heya',
|
|
||||||
'input' => 'My\Form\Type',
|
|
||||||
'filters' => array(
|
|
||||||
array('name' => 'a-filter'),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
$annot = new ApiDoc($data);
|
|
||||||
$array = $annot->toArray();
|
|
||||||
|
|
||||||
$this->assertTrue(is_array($array));
|
|
||||||
$this->assertFalse(isset($array['filters']));
|
|
||||||
$this->assertTrue($annot->isResource());
|
|
||||||
$this->assertEquals($data['description'], $array['description']);
|
|
||||||
$this->assertEquals($data['input'], $annot->getInput());
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testConstructWithStatusCodes()
|
public function testConstructWithStatusCodes()
|
||||||
{
|
{
|
||||||
$data = array(
|
$data = array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user