Changeset 35209
- Timestamp:
- 10/15/2015 08:34:08 PM (9 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-ajax.php
r26995 r35209 50 50 'wp-remove-post-lock', 'dismiss-wp-pointer', 'heartbeat', 'nopriv_heartbeat', 51 51 ); 52 53 /** 54 * Don't preserve the global state when using an external object cache. 55 * 56 * Most of the Ajax tests are running in a separate PHP process, and thus PHPUnit attempts 57 * to preserve the global state from the parent process by serializing all globals. 58 * But this doesn't work for external object caches so we have to disable this "feature". 59 */ 60 public function run( PHPUnit_Framework_TestResult $result = NULL ) { 61 if ( wp_using_ext_object_cache() ) { 62 $this->setPreserveGlobalState( false ); 63 } 64 65 return parent::run( $result ); 66 } 52 67 53 68 /** -
trunk/tests/phpunit/tests/ajax/Response.php
r31622 r35209 7 7 * @since 3.5.0 8 8 * @group ajax 9 * @runInSeparateProcess 9 10 */ 10 11 class Tests_Ajax_Response extends WP_UnitTestCase { … … 65 66 * bootstrapper 66 67 * @ticket 19448 67 * @runInSeparateProcess68 68 */ 69 69 public function test_response_charset_in_header() {
Note: See TracChangeset
for help on using the changeset viewer.