Skip to content

Commit a077217

Browse files
Fix
1 parent 2f971b7 commit a077217

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

tests/Functional/Parameters/PartialSearchFilterTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ protected function setUp(): void
5555
}
5656

5757
#[DataProvider('partialSearchFilterProvider')]
58-
#[DataProvider('partialSearchFilterCaseSensitiveProvider')]
5958
public function testPartialSearchFilter(string $url, int $expectedCount, array $expectedNames): void
6059
{
6160
$response = self::createClient()->request('GET', $url);
@@ -148,6 +147,14 @@ public function testPartialSearchMultiByteFilter(string $url, int $expectedCount
148147
if ($this->isSqlite()) {
149148
$this->markTestSkipped('Multibyte LIKE are not properly handled with sqlite.');
150149
}
150+
}
151+
152+
#[DataProvider('partialSearchFilterCaseSensitiveProvider')]
153+
public function testPartialSearchCaseSensitiveFilter(string $url, int $expectedCount, array $expectedNames): void
154+
{
155+
if ($this->isMysql() || $this->isSqlite()) {
156+
$this->markTestSkipped('Mysql and sqlite use case insensitive LIKE.');
157+
}
151158

152159
$this->testPartialSearchFilter($url, $expectedCount, $expectedNames);
153160
}

tests/RecreateSchemaTrait.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ private function isMongoDB(): bool
7878
return 'mongodb' === static::getContainer()->getParameter('kernel.environment');
7979
}
8080

81+
private function isMysql(): bool
82+
{
83+
return 'mysql' === static::getContainer()->getParameter('kernel.environment');
84+
}
85+
8186
private function isPostgres(): bool
8287
{
8388
return 'postgres' === static::getContainer()->getParameter('kernel.environment');

0 commit comments

Comments
 (0)