WordPress.org

Make WordPress Core

Changeset 33526


Ignore:
Timestamp:
07/31/2015 01:01:16 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Customizer: Fix failing tests on PHP 5.2 after [33488].

assertNotFalse() is not included in PHPUnit 3.6.12, use assertInternalType( 'int' ) instead.

fixes #32814.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/nav-menu-setting.php

    r33488 r33526  
    216216        $menus_ids = wp_list_pluck( $menus, 'term_id' );
    217217        $i = array_search( $menu_id, $menus_ids );
    218         $this->assertNotFalse( $i, 'Update-previewed menu does not appear in wp_get_nav_menus()' );
     218        $this->assertInternalType( 'int', $i, 'Update-previewed menu does not appear in wp_get_nav_menus()' );
    219219        $filtered_menu = $menus[ $i ];
    220220        $this->assertEquals( 'Name 2', $filtered_menu->name );
     
    261261        $menus_ids = wp_list_pluck( $menus, 'term_id' );
    262262        $i = array_search( $menu_id, $menus_ids );
    263         $this->assertNotFalse( $i, 'Insert-previewed menu was not injected into wp_get_nav_menus()' );
     263        $this->assertInternalType( 'int', $i, 'Insert-previewed menu was not injected into wp_get_nav_menus()' );
    264264        $filtered_menu = $menus[ $i ];
    265265        $this->assertEquals( 'New Menu Name 1', $filtered_menu->name );
Note: See TracChangeset for help on using the changeset viewer.