Changeset 55062
- Timestamp:
- 01/13/2023 01:57:18 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/sanitizeTextField.php
r54891 r55062 132 132 * @dataProvider data_sanitize_text_field 133 133 */ 134 public function test_sanitize_text_field( $str ing, $expected ) {134 public function test_sanitize_text_field( $str, $expected ) { 135 135 if ( is_array( $expected ) ) { 136 136 $expected_oneline = $expected['oneline']; … … 140 140 $expected_multiline = $expected; 141 141 } 142 $this->assertSame( $expected_oneline, sanitize_text_field( $str ing) );143 $this->assertSameIgnoreEOL( $expected_multiline, sanitize_textarea_field( $str ing) );142 $this->assertSame( $expected_oneline, sanitize_text_field( $str ) ); 143 $this->assertSameIgnoreEOL( $expected_multiline, sanitize_textarea_field( $str ) ); 144 144 145 145 }
Note: See TracChangeset
for help on using the changeset viewer.