Privacy: Fix tests after [43467].

Merges [43471] to the 4.9. branch.
See #44141.


git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43473 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2018-07-17 10:06:12 +00:00
parent 95cf14f832
commit 98972bf358

View File

@ -212,14 +212,14 @@ class Tests_Functions_Anonymization extends WP_UnitTestCase {
* Test email anonymization of `wp_privacy_anonymize_data()`. * Test email anonymization of `wp_privacy_anonymize_data()`.
*/ */
public function test_anonymize_email() { public function test_anonymize_email() {
$this->assertSame( '', wp_privacy_anonymize_data( 'email', 'bar@example.com' ) ); $this->assertSame( 'deleted@site.invalid', wp_privacy_anonymize_data( 'email', 'bar@example.com' ) );
} }
/** /**
* Test url anonymization of `wp_privacy_anonymize_data()`. * Test url anonymization of `wp_privacy_anonymize_data()`.
*/ */
public function test_anonymize_url() { public function test_anonymize_url() {
$this->assertSame( '', wp_privacy_anonymize_data( 'url', 'https://example.com/author/username' ) ); $this->assertSame( 'https://site.invalid', wp_privacy_anonymize_data( 'url', 'https://example.com/author/username' ) );
} }
/** /**