From fc13dc9dc0ef91e4408e01053d27bc93a5d16d1e Mon Sep 17 00:00:00 2001 From: Christian Stoller Date: Thu, 14 Dec 2023 16:10:54 +0100 Subject: [PATCH] Added test for using MatchAgainst in where clause which shows that it is currently leading to an error --- tests/Query/Mysql/MatchAgainstTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Query/Mysql/MatchAgainstTest.php b/tests/Query/Mysql/MatchAgainstTest.php index 477c66dd..3cb1ef65 100644 --- a/tests/Query/Mysql/MatchAgainstTest.php +++ b/tests/Query/Mysql/MatchAgainstTest.php @@ -14,6 +14,14 @@ public function testMatchAgainst() ); } + public function testMatchAgainstInWhereClause(): void + { + $this->assertDqlProducesSql( + "SELECT blank FROM DoctrineExtensions\Tests\Entities\Blank AS blank WHERE MATCH(blank.id) AGAINST ('3')", + "SELECT b0_.id AS id_0 FROM Blank b0_ WHERE MATCH (b0_.id) AGAINST ('3')" + ); + } + public function testMatchAgainstMultipleFields() { $this->assertDqlProducesSql(