Skip to content

Commit 961f750

Browse files
Exclude sqlite
1 parent cd4d7f0 commit 961f750

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tests/Functional/Parameters/PartialSearchFilterTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,20 @@ public static function partialSearchFilterProvider(): \Generator
139139
1,
140140
['xx_%_\\_%_xx'],
141141
];
142+
}
143+
144+
#[DataProvider('partialSearchMultiByteFilterProvider')]
145+
public function testPartialSearchMultiByteFilter(string $url, int $expectedCount, array $expectedNames): void
146+
{
147+
if ($this->isSqlite()) {
148+
$this->markTestSkipped('Multibyte LIKE are not properly handled with sqlite.');
149+
}
142150

151+
$this->testPartialSearchFilter($url, $expectedCount, $expectedNames);
152+
}
153+
154+
public static function partialSearchMultiByteFilterProvider(): \Generator
155+
{
143156
yield 'filter by partial name "gà"' => [
144157
'/chickens?namePartial[]=gà',
145158
1,

tests/RecreateSchemaTrait.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ private function isPostgres(): bool
8383
return 'postgres' === static::getContainer()->getParameter('kernel.environment');
8484
}
8585

86+
private function isSqlite(): bool
87+
{
88+
return \in_array(static::getContainer()->getParameter('kernel.environment'), ['sqlite', 'test'], true);
89+
}
90+
8691
private function getManager(): EntityManagerInterface|DocumentManager
8792
{
8893
return static::getContainer()->get($this->isMongoDB() ? 'doctrine_mongodb' : 'doctrine')->getManager();

0 commit comments

Comments
 (0)