Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Oct 17, 2024
1 parent dfc401f commit 3999f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Base/DataTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3999f5c

Please sign in to comment.