WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/08/2017 12:00:47 AM (4 years ago)
Author:
johnbillion
Message:

Build/Test tools: In Travis, skip some tests when not on trunk.

This skips time sensitive tests (copyright year and PHP/MySQL version requirements) when tests are run on branches on Travis.

Props netweb, jorbin
Fixes #39486

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/functions.php

    r39219 r40239  
    165165// Skip `setcookie` calls in auth_cookie functions due to warning:
    166166// Cannot modify header information - headers already sent by ...
    167 
    168 function wp_set_auth_cookie( $user_id, $remember = false, $secure = '', $token = '' ) {
    169     $auth_cookie = null;
    170     $expire = null;
    171     $expiration = null;
    172     $user_id = null;
    173     $scheme = null;
    174     /** This action is documented in wp-inclues/pluggable.php */
    175     do_action( 'set_auth_cookie', $auth_cookie, $expire, $expiration, $user_id, $scheme );
    176     $logged_in_cookie = null;
    177     /** This action is documented in wp-inclues/pluggable.php */
    178     do_action( 'set_logged_in_cookie', $logged_in_cookie, $expire, $expiration, $user_id, 'logged_in' );
    179 }
    180 
    181 function wp_clear_auth_cookie() {
    182     /** This action is documented in wp-inclues/pluggable.php */
    183     do_action( 'clear_auth_cookie' );
    184 }
     167tests_add_filter( 'send_auth_cookies', '__return_false' );
Note: See TracChangeset for help on using the changeset viewer.