mirror of
https://github.com/elyby/accounts.git
synced 2024-12-23 05:39:54 +05:30
Fix slash email test
This commit is contained in:
parent
b3d1f75cc0
commit
984c6e7682
@ -93,7 +93,7 @@ final class EmailValidatorTest extends TestCase {
|
||||
$this->getFunctionMock(YiiEmailValidator::class, 'checkdnsrr')->expects($this->any())->willReturn(true);
|
||||
$this->getFunctionMock(YiiEmailValidator::class, 'dns_get_record')->expects($this->any())->willReturn(['mx.google.com']);
|
||||
|
||||
$model = $this->createModel('\slash@gmail.com');
|
||||
$model = $this->createModel('/slash@gmail.com');
|
||||
$this->validator->validateAttribute($model, 'field');
|
||||
$this->assertSame(['error.email_invalid'], $model->getErrors('field'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user