Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Validator
Test
Unit
EmailAddressTest.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\Validator\Test\Unit
;
9
10
use
Magento\Framework\Validator\EmailAddress
;
11
12
class
EmailAddressTest
extends
\PHPUnit\Framework\TestCase
13
{
17
public
function
testDefaultValidateIgnoresTLD()
18
{
20
$emailAddress =
new
EmailAddress
();
21
$this->assertTrue($emailAddress->isValid(
"
[email protected]
"
));
22
}
23
27
public
function
testCanValidateTLD()
28
{
30
$emailAddress =
new
EmailAddress
();
31
$emailAddress->setValidateTld(
true
);
32
$this->assertFalse($emailAddress->isValid(
"
[email protected]
"
));
33
}
34
}
Magento\Framework\Validator\Test\Unit\EmailAddressTest
Definition:
EmailAddressTest.php:12
Magento\Framework\Validator\Test\Unit
Definition:
BuilderTest.php:6
Magento\Framework\Validator\EmailAddress
Definition:
EmailAddress.php:10