Changeset 48937 for trunk/tests/phpunit/tests/functions/anonymization.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/anonymization.php
r48100 r48937 37 37 /* Todo test ipv6_fallback mode if keeping it.*/ 38 38 39 $this->assert Equals( $expected_result, $actual_result );39 $this->assertSame( $expected_result, $actual_result ); 40 40 } 41 41 … … 227 227 */ 228 228 public function test_anonymize_date() { 229 $this->assert Equals( '0000-00-00 00:00:00', wp_privacy_anonymize_data( 'date', '2003-12-25 12:34:56' ) );229 $this->assertSame( '0000-00-00 00:00:00', wp_privacy_anonymize_data( 'date', '2003-12-25 12:34:56' ) ); 230 230 } 231 231 … … 235 235 public function test_anonymize_text() { 236 236 $text = __( 'Four score and seven years ago' ); 237 $this->assert Equals( '[deleted]', wp_privacy_anonymize_data( 'text', $text ) );237 $this->assertSame( '[deleted]', wp_privacy_anonymize_data( 'text', $text ) ); 238 238 } 239 239 … … 243 243 public function test_anonymize_long_text() { 244 244 $text = __( 'Four score and seven years ago' ); 245 $this->assert Equals( 'This content was deleted by the author.', wp_privacy_anonymize_data( 'longtext', $text ) );245 $this->assertSame( 'This content was deleted by the author.', wp_privacy_anonymize_data( 'longtext', $text ) ); 246 246 } 247 247
Note: See TracChangeset
for help on using the changeset viewer.