Skip to content

Commit

Permalink
OHRM5X-2407: Fix timezone test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ManulMax committed Jan 22, 2024
1 parent f27f794 commit 867e68d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,16 @@ public function testGetAll(TestCaseParams $testCaseParams): void
public function dataProviderForTestGetAll(): array
{
$phpVersion = phpversion();
$testCases = $this->getTestCases('TimezonesAPITestCases.yaml', 'GetAll');
if (version_compare($phpVersion, '7.4.29', '>=')) {
return $this->getTestCases('TimezonesAPITestCasesForSpecificVersion.yaml', 'GetAll');
$testCase = &$testCases["Get Timezones by filter(ESS) - tok"][0];
$modifiedTimeZone = [
"name" => "Antarctica/Vostok",
"label" => "+07:00",
"offset" => "7.0"
];
$testCase->setResultData($modifiedTimeZone);
return $testCases;
} else {
return $this->getTestCases('TimezonesAPITestCases.yaml', 'GetAll');
}
Expand Down

This file was deleted.

0 comments on commit 867e68d

Please sign in to comment.