Files
FreshRSS/tests/app/Utils/passwordUtilTest.php
Brooke 2942d64d4f Update Travis.yaml to support newer PHP versions (#3459)
* Update Travis

* Drop Older PHP Versions

Drops PHP 7.1 and 7.3 from tests. Also updates Translations to use PHP 7.4 instead of 7.3

* Update Test Class Names to Fix Warnings

This updates the Class name for 'CategoryTest', `passwordUtilTest.php`, and `MigratorTest.php`
2021-02-20 00:35:53 +01:00

28 lines
528 B
PHP

<?php
class passwordUtilTest extends PHPUnit\Framework\TestCase {
public function testCheck() {
$password = '1234567';
$ok = FreshRSS_password_Util::check($password);
$this->assertTrue($ok);
}
public function testCheckReturnsFalseIfEmpty() {
$password = '';
$ok = FreshRSS_password_Util::check($password);
$this->assertFalse($ok);
}
public function testCheckReturnsFalseIfLessThan7Characters() {
$password = '123456';
$ok = FreshRSS_password_Util::check($password);
$this->assertFalse($ok);
}
}