REST API: Embiggen the test email address.

We no longer want a@b.c to be valid, so let's make it a@b.co instead.

Props dd32.
See #38506.


git-svn-id: https://develop.svn.wordpress.org/trunk@39159 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan McCue 2016-11-08 06:45:26 +00:00
parent 08efd7b636
commit 0bbeaf7b15
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class WP_Test_REST_Schema_Validation extends WP_UnitTestCase {
'format' => 'email',
);
$this->assertTrue( rest_validate_value_from_schema( 'email@example.com', $schema ) );
$this->assertTrue( rest_validate_value_from_schema( 'a@b.c', $schema ) );
$this->assertTrue( rest_validate_value_from_schema( 'a@b.co', $schema ) );
$this->assertWPError( rest_validate_value_from_schema( 'email', $schema ) );
}