From 3999f5c08502be56998fd23ab5abb0801886991c Mon Sep 17 00:00:00 2001 From: Alexey Rogachev Date: Thu, 17 Oct 2024 19:09:48 +0500 Subject: [PATCH] Fix --- tests/Base/DataTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Base/DataTrait.php b/tests/Base/DataTrait.php index 451be3b..bdc96fd 100644 --- a/tests/Base/DataTrait.php +++ b/tests/Base/DataTrait.php @@ -60,8 +60,8 @@ protected function assertFixtures(array $expectedFixtureIndexes, array $actualFi $fixture['number'] = (int) $fixture['number']; $fixture['balance'] = (float) $fixture['balance']; - if ($fixture['born_at'] !== null && $this->getConnection()->getDriverName() === 'oci') { - $fixture['born_at'] = DateTime::createFromFormat('d-M-Y', $fixture['born_at'])->format('Y-m-d'); + if ($fixture['born_at'] !== null && $this->getConnection()->getDriverName() !== 'oci') { + $fixture['born_at'] = DateTime::createFromFormat('d-M-y', $fixture['born_at'])->format('Y-m-d'); } $processedActualFixtures[$fixture['number'] - 1] = $fixture;