Skip to:
Content

BuddyPress.org

Changeset 9316


Ignore:
Timestamp:
01/08/2015 09:44:45 PM (10 years ago)
Author:
johnjamesjacoby
Message:

s/else if/elseif/ for unit tests. See #6097.

Location:
trunk/tests/phpunit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/define-constants.php

    r8958 r9316  
    4040    define( 'WP_TESTS_CONFIG_PATH', WP_ROOT_DIR . '/wp-tests-config.php' );
    4141
    42 } else if ( file_exists( WP_TESTS_DIR . '/wp-tests-config.php' ) ) {
     42} elseif ( file_exists( WP_TESTS_DIR . '/wp-tests-config.php' ) ) {
    4343    // Legacy unit-test.svn.wordpress.org setup
    4444    define( 'WP_TESTS_CONFIG_PATH', WP_TESTS_DIR . '/wp-tests-config.php' );
    4545
    46 } else if ( file_exists( dirname( dirname( WP_TESTS_DIR ) ) . '/wp-tests-config.php' ) ) {
     46} elseif ( file_exists( dirname( dirname( WP_TESTS_DIR ) ) . '/wp-tests-config.php' ) ) {
    4747    // Environment variable exists and points to tests/phpunit of
    4848    // develop.svn.wordpress.org setup
  • trunk/tests/phpunit/testcases/core/avatars.php

    r9275 r9316  
    2525        if ( 'user' === $type ) {
    2626            $avatar_dir = 'avatars';
    27         } else if ( 'group' === $object ) {
     27        } elseif ( 'group' === $object ) {
    2828            $avatar_dir = 'group-avatars';
    2929        }
     
    160160            if ( empty( $bp->grav_default->{$this->params['object']} ) ) {
    161161                $default_grav = 'wavatar';
    162             } else if ( 'mystery' == $bp->grav_default->{$this->params['object']} ) {
     162            } elseif ( 'mystery' == $bp->grav_default->{$this->params['object']} ) {
    163163                $default_grav = apply_filters( 'bp_core_mysteryman_src', 'mm', $this->params['width'] );
    164164            } else {
Note: See TracChangeset for help on using the changeset viewer.