From 984c6e7682a88527e239e45bddca18df7e396be2 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 15 Oct 2023 06:54:35 +0200 Subject: [PATCH] Fix slash email test --- common/tests/unit/validators/EmailValidatorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tests/unit/validators/EmailValidatorTest.php b/common/tests/unit/validators/EmailValidatorTest.php index ea5874b..51c3b6f 100644 --- a/common/tests/unit/validators/EmailValidatorTest.php +++ b/common/tests/unit/validators/EmailValidatorTest.php @@ -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')); }