Changeset 41293 for trunk/tests/phpunit/tests/customize/manager.php
- Timestamp:
- 08/22/2017 03:07:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/manager.php
r41244 r41293 1545 1545 */ 1546 1546 function test_doing_ajax() { 1547 if ( ! defined( 'DOING_AJAX' ) ) { 1548 define( 'DOING_AJAX', true ); 1549 } 1547 add_filter( 'wp_doing_ajax', '__return_true' ); 1550 1548 1551 1549 $manager = $this->manager; … … 1561 1559 */ 1562 1560 function test_not_doing_ajax() { 1563 if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { 1564 $this->markTestSkipped( 'Cannot test when DOING_AJAX' ); 1565 } 1561 add_filter( 'wp_doing_ajax', '__return_false' ); 1566 1562 1567 1563 $manager = $this->manager;
Note: See TracChangeset
for help on using the changeset viewer.