@@ -7,30 +7,30 @@ |
||
| 7 | 7 | |
| 8 | 8 | class PasswordStrengthTest extends SapphireTest |
| 9 | 9 | { |
| 10 | - public function testPasswordMinLength() |
|
| 11 | - { |
|
| 12 | - $passwordValidator = Member::password_validator(); |
|
| 13 | - $this->assertGreaterThanOrEqual(10, $passwordValidator->getMinLength()); |
|
| 14 | - } |
|
| 10 | + public function testPasswordMinLength() |
|
| 11 | + { |
|
| 12 | + $passwordValidator = Member::password_validator(); |
|
| 13 | + $this->assertGreaterThanOrEqual(10, $passwordValidator->getMinLength()); |
|
| 14 | + } |
|
| 15 | 15 | |
| 16 | - public function testMinTestScore() |
|
| 17 | - { |
|
| 18 | - $passwordValidator = Member::password_validator(); |
|
| 19 | - $this->assertGreaterThanOrEqual(3, $passwordValidator->getMinTestScore()); |
|
| 20 | - } |
|
| 16 | + public function testMinTestScore() |
|
| 17 | + { |
|
| 18 | + $passwordValidator = Member::password_validator(); |
|
| 19 | + $this->assertGreaterThanOrEqual(3, $passwordValidator->getMinTestScore()); |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - public function testHistoricCheckCount() |
|
| 23 | - { |
|
| 24 | - $passwordValidator = Member::password_validator(); |
|
| 25 | - $this->assertGreaterThanOrEqual(6, $passwordValidator->getHistoricCount()); |
|
| 26 | - } |
|
| 22 | + public function testHistoricCheckCount() |
|
| 23 | + { |
|
| 24 | + $passwordValidator = Member::password_validator(); |
|
| 25 | + $this->assertGreaterThanOrEqual(6, $passwordValidator->getHistoricCount()); |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - public function testTestNamesInclude() |
|
| 29 | - { |
|
| 30 | - $passwordValidator = Member::password_validator(); |
|
| 31 | - $this->assertContains('lowercase', $passwordValidator->getTestNames()); |
|
| 32 | - $this->assertContains('uppercase', $passwordValidator->getTestNames()); |
|
| 33 | - $this->assertContains('digits', $passwordValidator->getTestNames()); |
|
| 34 | - $this->assertContains('punctuation', $passwordValidator->getTestNames()); |
|
| 35 | - } |
|
| 28 | + public function testTestNamesInclude() |
|
| 29 | + { |
|
| 30 | + $passwordValidator = Member::password_validator(); |
|
| 31 | + $this->assertContains('lowercase', $passwordValidator->getTestNames()); |
|
| 32 | + $this->assertContains('uppercase', $passwordValidator->getTestNames()); |
|
| 33 | + $this->assertContains('digits', $passwordValidator->getTestNames()); |
|
| 34 | + $this->assertContains('punctuation', $passwordValidator->getTestNames()); |
|
| 35 | + } |
|
| 36 | 36 | } |