You appear to be a bot. Output may be restricted
Description
Usage
Tests_Option_Registration::test_register_with_array();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/option/registration.php
Lines:
1 to 13 of 13
public function test_register_with_array() { register_setting( 'test_group', 'test_option', array( 'sanitize_callback' => array( $this, 'filter_registered_setting' ), ) ); $filtered = apply_filters( 'sanitize_option_test_option', 'smart', 'test_option', 'smart' ); $this->assertSame( 'S-M-R-T', $filtered ); }