Changeset 51331 for trunk/tests/phpunit/tests/customize/setting.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/setting.php
r48937 r51331 731 731 public function filter_validate_for_test_validate( $validity, $value ) { 732 732 $this->assertInstanceOf( 'WP_Error', $validity ); 733 $this->assertI nternalType( 'string',$value );733 $this->assertIsString( $value ); 734 734 if ( sanitize_key( $value ) !== $value ) { 735 735 $validity->add( 'invalid_key', 'Invalid key' );
Note: See TracChangeset
for help on using the changeset viewer.