Skip to content

Commit 79a0cca

Browse files
committed
add more cases for tests
1 parent e3e3c4f commit 79a0cca

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

tests/_support/Database/Seeds/CITestSeeder.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,13 @@ public function run(): void
8787
'value' => 'value',
8888
],
8989
[
90-
'key' => 'accented characters',
90+
'key' => 'multibyte characters 1',
9191
'value' => 'śćźżłąęó',
9292
],
93+
[
94+
'key' => 'multibyte characters 2',
95+
'value' => 'خٌوب',
96+
],
9397
],
9498
'type_test' => [
9599
[

tests/system/Database/Live/LikeTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,17 @@ public function testLikeCaseInsensitive(): void
7575
$this->assertSame('Developer', $job->name);
7676
}
7777

78-
public function testLikeCaseInsensitiveWithAccentedCharacter(): void
78+
public function testLikeCaseInsensitiveWithMultibyteCharacter(): void
7979
{
8080
$wai = $this->db->table('without_auto_increment')->like('value', 'ŁĄ', 'both', null, true)->get();
8181
$wai = $wai->getRow();
8282

83-
$this->assertSame('accented characters', $wai->key);
83+
$this->assertSame('multibyte characters 1', $wai->key);
84+
85+
$wai = $this->db->table('without_auto_increment')->like('value', 'خٌوب', 'both', null, true)->get();
86+
$wai = $wai->getRow();
87+
88+
$this->assertSame('multibyte characters 2', $wai->key);
8489
}
8590

8691
public function testOrLike(): void

0 commit comments

Comments
 (0)