@@ -26,30 +26,30 @@ |
||
26 | 26 | */ |
27 | 27 | class PasswordStrengthTest extends SapphireTest |
28 | 28 | { |
29 | - public function testPasswordMinLength() |
|
30 | - { |
|
31 | - $passwordValidator = Member::password_validator(); |
|
32 | - $this->assertGreaterThanOrEqual(10, $passwordValidator->getMinLength()); |
|
33 | - } |
|
29 | + public function testPasswordMinLength() |
|
30 | + { |
|
31 | + $passwordValidator = Member::password_validator(); |
|
32 | + $this->assertGreaterThanOrEqual(10, $passwordValidator->getMinLength()); |
|
33 | + } |
|
34 | 34 | |
35 | - public function testMinTestScore() |
|
36 | - { |
|
37 | - $passwordValidator = Member::password_validator(); |
|
38 | - $this->assertGreaterThanOrEqual(3, $passwordValidator->getMinTestScore()); |
|
39 | - } |
|
35 | + public function testMinTestScore() |
|
36 | + { |
|
37 | + $passwordValidator = Member::password_validator(); |
|
38 | + $this->assertGreaterThanOrEqual(3, $passwordValidator->getMinTestScore()); |
|
39 | + } |
|
40 | 40 | |
41 | - public function testHistoricCheckCount() |
|
42 | - { |
|
43 | - $passwordValidator = Member::password_validator(); |
|
44 | - $this->assertGreaterThanOrEqual(6, $passwordValidator->getHistoricCount()); |
|
45 | - } |
|
41 | + public function testHistoricCheckCount() |
|
42 | + { |
|
43 | + $passwordValidator = Member::password_validator(); |
|
44 | + $this->assertGreaterThanOrEqual(6, $passwordValidator->getHistoricCount()); |
|
45 | + } |
|
46 | 46 | |
47 | - public function testTestNamesInclude() |
|
48 | - { |
|
49 | - $passwordValidator = Member::password_validator(); |
|
50 | - $this->assertContains('lowercase', $passwordValidator->getTestNames()); |
|
51 | - $this->assertContains('uppercase', $passwordValidator->getTestNames()); |
|
52 | - $this->assertContains('digits', $passwordValidator->getTestNames()); |
|
53 | - $this->assertContains('punctuation', $passwordValidator->getTestNames()); |
|
54 | - } |
|
47 | + public function testTestNamesInclude() |
|
48 | + { |
|
49 | + $passwordValidator = Member::password_validator(); |
|
50 | + $this->assertContains('lowercase', $passwordValidator->getTestNames()); |
|
51 | + $this->assertContains('uppercase', $passwordValidator->getTestNames()); |
|
52 | + $this->assertContains('digits', $passwordValidator->getTestNames()); |
|
53 | + $this->assertContains('punctuation', $passwordValidator->getTestNames()); |
|
54 | + } |
|
55 | 55 | } |