Fix property naming

This commit is contained in:
Thomas Lallement 2021-03-16 10:42:37 +01:00
parent 7f9b00d620
commit 73ad2e3cdf

View File

@ -50,11 +50,11 @@ class FOSRestTest extends WebTestCase
$this->assertEquals(OA\UNDEFINED, $bazProperty->pattern);
$this->assertEquals('IsTrue', $bazProperty->format);
$barProperty = $this->getProperty($bodySchema, 'datetime');
$this->assertEquals('date-time', $barProperty->format);
$dateTimeProperty = $this->getProperty($bodySchema, 'datetime');
$this->assertEquals('date-time', $dateTimeProperty->format);
$barProperty = $this->getProperty($bodySchema, 'date');
$this->assertEquals('date', $barProperty->format);
$dateProperty = $this->getProperty($bodySchema, 'date');
$this->assertEquals('date', $dateProperty->format);
// The _format path attribute should be removed
$this->assertNotHasParameter('_format', 'path', $operation);