Skip to content

Commit 0161214

Browse files
committed
skip test when doctrine/orm v2
1 parent 8f1ebfb commit 0161214

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/Functional/Uuid/UuidFilterWithRamseyUuidBinaryTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,20 @@
1515

1616
use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Uuid\RamseyUuidBinaryDevice;
1717
use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Uuid\RamseyUuidBinaryDeviceEndpoint;
18+
use Composer\InstalledVersions;
19+
use Composer\Semver\VersionParser;
1820

1921
class UuidFilterWithRamseyUuidBinaryTest extends UuidFilterBaseTestCase
2022
{
23+
protected function setUp(): void
24+
{
25+
if (!InstalledVersions::satisfies(new VersionParser, 'doctrine/orm', '^3.0.1')) {
26+
$this->markTestSkipped('The "doctrine/orm" package version 3.0.1 or higher is required to use the UuidBinaryFilter');
27+
}
28+
29+
parent::setUp();
30+
}
31+
2132
/**
2233
* @return class-string[]
2334
*/

0 commit comments

Comments
 (0)