Changeset 36689 for trunk/tests/phpunit/tests/customize/partial.php
- Timestamp:
- 02/24/2016 06:27:45 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/customize/partial.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/partial.php
r36643 r36689 326 326 ) ); 327 327 $this->assertFalse( $partial->check_capabilities() ); 328 329 $partial = new WP_Customize_Partial( $this->selective_refresh, 'no_setting', array( 330 'settings' => array(), 331 ) ); 332 $this->assertTrue( $partial->check_capabilities() ); 333 334 $partial = new WP_Customize_Partial( $this->selective_refresh, 'no_setting', array( 335 'settings' => array(), 336 'capability' => 'top_secret_clearance', 337 ) ); 338 $this->assertFalse( $partial->check_capabilities() ); 339 340 $partial = new WP_Customize_Partial( $this->selective_refresh, 'no_setting', array( 341 'settings' => array(), 342 'capability' => 'edit_theme_options', 343 ) ); 344 $this->assertTrue( $partial->check_capabilities() ); 328 345 } 329 346
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)