Privacy: Fix tests after [43467].
See #44141. git-svn-id: https://develop.svn.wordpress.org/trunk@43471 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d8869384be
commit
c1ce7d134b
@ -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…
Reference in New Issue
Block a user