From c1ce7d134b828ead35fb6a81c938d8eab279177b Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 17 Jul 2018 09:57:57 +0000 Subject: [PATCH] Privacy: Fix tests after [43467]. See #44141. git-svn-id: https://develop.svn.wordpress.org/trunk@43471 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions/anonymization.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/functions/anonymization.php b/tests/phpunit/tests/functions/anonymization.php index 55977496f3..073bb56761 100644 --- a/tests/phpunit/tests/functions/anonymization.php +++ b/tests/phpunit/tests/functions/anonymization.php @@ -212,14 +212,14 @@ class Tests_Functions_Anonymization extends WP_UnitTestCase { * Test email anonymization of `wp_privacy_anonymize_data()`. */ 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()`. */ 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' ) ); } /**