Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,4 @@
abstract class BaseReaderWithLikeTestCase extends \Yiisoft\Data\Tests\Common\Reader\ReaderWithFilter\BaseReaderWithLikeTestCase
{
use DataTrait;

public static function dataWithReader(): array
{
$data = parent::dataWithReader();
$data['search: contains, different case, case sensitive: null'] = ['email', 'SEED@', null, [2]];

return $data;
}
}
13 changes: 13 additions & 0 deletions tests/Mssql/ReaderWithHandler/ReaderWithLikeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,17 @@
final class ReaderWithLikeTest extends BaseReaderWithLikeTestCase
{
use DatabaseTrait;

public static function dataWithReader(): array
{
$data = parent::dataWithReader();

// MSSQL doesn't support case-sensitive "LIKE" conditions
unset(
$data['search: contains, same case, case sensitive: true'],
$data['search: contains, different case, case sensitive: true'],
);

return $data;
}
}
10 changes: 0 additions & 10 deletions tests/Mysql/ReaderWithFilter/ReaderWithLikeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,4 @@
final class ReaderWithLikeTest extends BaseReaderWithLikeTestCase
{
use DatabaseTrait;

public static function dataWithReader(): array
{
$data = parent::dataWithReader();
$data['search: contains, same case, case sensitive: true'] = ['email', 'ed@be', true, [2]];
// TODO: Add after changes in yiisoft/db
// $data['search: contains, different case, case sensitive: true'] = ['email', 'SEED@', true, []];

return $data;
}
}
14 changes: 0 additions & 14 deletions tests/Oracle/ReaderWithHandler/ReaderWithLikeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,4 @@
final class ReaderWithLikeTest extends BaseReaderWithLikeTestCase
{
use DatabaseTrait;

public static function dataWithReader(): array
{
$data = parent::dataWithReader();
$data['search: contains, same case, case sensitive: true'] = ['email', 'ed@be', true, [2]];
$data['search: contains, different case, case sensitive: true'] = ['email', 'SEED@', true, []];
// TODO: Remove after changes in yiisoft/db
unset(
$data['search: contains, different case, case sensitive: null'],
$data['search: contains, different case, case sensitive: false'],
);

return $data;
}
}
14 changes: 0 additions & 14 deletions tests/Pgsql/ReaderWithFilter/ReaderWithLikeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,4 @@
final class ReaderWithLikeTest extends BaseReaderWithLikeTestCase
{
use DatabaseTrait;

public static function dataWithReader(): array
{
$data = parent::dataWithReader();
$data['search: contains, same case, case sensitive: true'] = ['email', 'ed@be', true, [2]];
$data['search: contains, different case, case sensitive: true'] = ['email', 'SEED@', true, []];
// TODO: Remove after changes in yiisoft/db
unset(
$data['search: contains, different case, case sensitive: null'],
$data['search: contains, different case, case sensitive: false'],
);

return $data;
}
}
13 changes: 13 additions & 0 deletions tests/Sqlite/ReaderWithFilter/ReaderWithLikeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,17 @@
final class ReaderWithLikeTest extends BaseReaderWithLikeTestCase
{
use DatabaseTrait;

public static function dataWithReader(): array
{
$data = parent::dataWithReader();

// SQLite doesn't support case-sensitive "LIKE" conditions
unset(
$data['search: contains, same case, case sensitive: true'],
$data['search: contains, different case, case sensitive: true'],
);

return $data;
}
}
Loading