mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-24 05:08:03 -05:00
* 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`
28 lines
528 B
PHP
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);
|
|
}
|
|
}
|