Changeset 43571 for trunk/tests/phpunit/tests/customize/partial.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/partial.php
r42343 r43571 117 117 118 118 $partial = new WP_Customize_Partial( 119 $this->selective_refresh, $partial_id, array( 119 $this->selective_refresh, 120 $partial_id, 121 array( 120 122 'settings' => 'blogdescription', 121 123 ) … … 222 224 function test_render_with_bad_callback_should_give_preference_to_return_value() { 223 225 $partial = new WP_Customize_Partial( 224 $this->selective_refresh, 'foo', array( 226 $this->selective_refresh, 227 'foo', 228 array( 225 229 'render_callback' => array( $this, 'render_echo_and_return' ), 226 230 ) … … 237 241 function test_render_echo_callback() { 238 242 $partial = new WP_Customize_Partial( 239 $this->selective_refresh, 'foo', array( 243 $this->selective_refresh, 244 'foo', 245 array( 240 246 'render_callback' => array( $this, 'render_echo' ), 241 247 ) … … 258 264 function test_render_return_callback() { 259 265 $partial = new WP_Customize_Partial( 260 $this->selective_refresh, 'foo', array( 266 $this->selective_refresh, 267 'foo', 268 array( 261 269 'render_callback' => array( $this, 'render_return' ), 262 270 ) … … 320 328 do_action( 'customize_register', $this->wp_customize ); 321 329 $partial = new WP_Customize_Partial( 322 $this->selective_refresh, 'blogname', array( 330 $this->selective_refresh, 331 'blogname', 332 array( 323 333 'settings' => array( 'blogname' ), 324 334 ) … … 327 337 328 338 $partial = new WP_Customize_Partial( 329 $this->selective_refresh, 'blogname', array( 339 $this->selective_refresh, 340 'blogname', 341 array( 330 342 'settings' => array( 'blogname', 'non_existing' ), 331 343 ) … … 334 346 335 347 $this->wp_customize->add_setting( 336 'top_secret_message', array( 348 'top_secret_message', 349 array( 337 350 'capability' => 'top_secret_clearance', 338 351 ) 339 352 ); 340 353 $partial = new WP_Customize_Partial( 341 $this->selective_refresh, 'blogname', array( 354 $this->selective_refresh, 355 'blogname', 356 array( 342 357 'settings' => array( 'blogname', 'top_secret_clearance' ), 343 358 ) … … 346 361 347 362 $partial = new WP_Customize_Partial( 348 $this->selective_refresh, 'no_setting', array( 363 $this->selective_refresh, 364 'no_setting', 365 array( 349 366 'settings' => array(), 350 367 ) … … 353 370 354 371 $partial = new WP_Customize_Partial( 355 $this->selective_refresh, 'no_setting', array( 372 $this->selective_refresh, 373 'no_setting', 374 array( 356 375 'settings' => array(), 357 376 'capability' => 'top_secret_clearance', … … 361 380 362 381 $partial = new WP_Customize_Partial( 363 $this->selective_refresh, 'no_setting', array( 382 $this->selective_refresh, 383 'no_setting', 384 array( 364 385 'settings' => array(), 365 386 'capability' => 'edit_theme_options',
Note: See TracChangeset
for help on using the changeset viewer.