mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
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:
parent
95cf14f832
commit
98972bf358
@ -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' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user