Skip to content

Commit b946437

Browse files
committed
add password_is_not_strong test
1 parent 39e7730 commit b946437

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/ValidStrongPasswordTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,19 @@ public function password_is_strong()
3030

3131
$this->assertTrue($passes);
3232
}
33+
34+
/**
35+
* Test password is not strong.
36+
*
37+
* @test
38+
* @return void
39+
*/
40+
public function password_is_not_strong()
41+
{
42+
$rules = ['strong_password' => [new ValidStrongPassword()]];
43+
$data = ['strong_password' => 'Milwad123'];
44+
$passes = $this->app['validator']->make($data, $rules)->passes();
45+
46+
$this->assertFalse($passes);
47+
}
3348
}

0 commit comments

Comments
 (0)