We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e7730 commit b946437Copy full SHA for b946437
tests/ValidStrongPasswordTest.php
@@ -30,4 +30,19 @@ public function password_is_strong()
30
31
$this->assertTrue($passes);
32
}
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
+ }
48
0 commit comments