Skip to content

Commit

Permalink
Fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AltamashShaikh committed Jul 11, 2024
1 parent d92d5be commit 6609c54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/System/ImportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ public function testApi($api, $params)
if (version_compare(Version::VERSION, '4.10.0') <= 0) {
$this->markTestSkipped('Skipping tests for lower version');
}
if ($api === 'Goals.get' && version_compare(Version::VERSION, '5.2.0-alpha', '<')) {
$this->markTestSkipped('Skipping tests for lower version');
if (version_compare(Version::VERSION, '5.2.0-alpha', '<') && is_array($api) && in_array('Goals.get', $api)) {
$keyToDelete = array_search('Goals.get', $api);
unset($api[$keyToDelete]);
}
$this->runApiTests($api, $params);
}
Expand Down

0 comments on commit 6609c54

Please sign in to comment.