Skip to content

Commit 7bd5f0a

Browse files
committed
minor #905 [Store] Skip MongoDb tests if extension is not available (lyrixx)
This PR was merged into the main branch. Discussion ---------- [Store] Skip MongoDb tests if extension is not available | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | | License | MIT Commits ------- 69c228a [Store] Skip MongoDb tests if extension is not available
2 parents 5637435 + 69c228a commit 7bd5f0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/store/tests/Bridge/MongoDb/StoreTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use MongoDB\Collection;
1717
use MongoDB\Driver\CursorInterface;
1818
use MongoDB\Driver\Exception\CommandException;
19+
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
1920
use PHPUnit\Framework\TestCase;
2021
use Psr\Log\NullLogger;
2122
use Symfony\AI\Platform\Vector\Vector;
@@ -25,6 +26,7 @@
2526
use Symfony\AI\Store\Exception\InvalidArgumentException;
2627
use Symfony\Component\Uid\Uuid;
2728

29+
#[RequiresPhpExtension('mongodb')]
2830
final class StoreTest extends TestCase
2931
{
3032
public function testAddSingleDocument()

0 commit comments

Comments
 (0)