Skip to content

Commit fa901c3

Browse files
Added additional Str::slug tests (#31791)
1 parent bea64e4 commit fa901c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Support/SupportStrTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ public function testSlug()
178178
$this->assertSame('hello_world', Str::slug('hello_world', '_'));
179179
$this->assertSame('user-at-host', Str::slug('user@host'));
180180
$this->assertSame('سلام-دنیا', Str::slug('سلام دنیا', '-', null));
181+
$this->assertSame('sometext', Str::slug('some text', ''));
182+
$this->assertSame('', Str::slug('', ''));
183+
$this->assertSame('', Str::slug(''));
181184
}
182185

183186
public function testStrStart()

0 commit comments

Comments
 (0)