mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Добавлен action для формы восстановления пароля
This commit is contained in:
16
tests/codeception/common/unit/helpers/StringHelperTest.php
Normal file
16
tests/codeception/common/unit/helpers/StringHelperTest.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace codeception\common\unit\helpers;
|
||||
|
||||
use common\helpers\StringHelper;
|
||||
|
||||
class StringHelperTest extends \PHPUnit_Framework_TestCase {
|
||||
|
||||
public function testGetEmailMask() {
|
||||
$this->assertEquals('**@ely.by', StringHelper::getEmailMask('e@ely.by'));
|
||||
$this->assertEquals('e**@ely.by', StringHelper::getEmailMask('es@ely.by'));
|
||||
$this->assertEquals('e**i@ely.by', StringHelper::getEmailMask('eri@ely.by'));
|
||||
$this->assertEquals('er**ch@ely.by', StringHelper::getEmailMask('erickskrauch@ely.by'));
|
||||
$this->assertEquals('эр**уч@елу.бел', StringHelper::getEmailMask('эрикскрауч@елу.бел'));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user