Skip to content

Commit 5d7522c

Browse files
committed
Set min slug tests
1 parent 88c09c7 commit 5d7522c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/CuidTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
class CuidTest extends \PHPUnit_Framework_TestCase
2222
{
2323
const MAX = 100000;
24+
const MIN = 20000;
2425

2526
/** @test */
2627
public function it_shoud_return_string()
@@ -57,7 +58,7 @@ public function it_should_not_collide_making_slug()
5758
{
5859
$ids = [];
5960

60-
for ($i = 1; $i <= static::MAX; $i++) {
61+
for ($i = 1; $i <= static::MIN; $i++) {
6162
$id = Cuid::slug();
6263

6364
$this->assertFalse(isset($ids[$id]));

0 commit comments

Comments
 (0)