From 73ad2e3cdf5bcd8d35f60effb2465ed9ee6fd06f Mon Sep 17 00:00:00 2001 From: Thomas Lallement Date: Tue, 16 Mar 2021 10:42:37 +0100 Subject: [PATCH] Fix property naming --- Tests/Functional/FOSRestTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/Functional/FOSRestTest.php b/Tests/Functional/FOSRestTest.php index a67cb7d..739b0f3 100644 --- a/Tests/Functional/FOSRestTest.php +++ b/Tests/Functional/FOSRestTest.php @@ -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);