WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/20/2018 10:34:11 PM (4 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Implement assertNotWPError() in appropriate places in the test suite.

Props birgire

Fixes #42065

File:
1 edited

Legend:

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

    r42343 r42863  
    254254        $term = (array) wp_get_nav_menu_object( $menu_id );
    255255        $this->assertNotEmpty( $term );
    256         $this->assertNotInstanceOf( 'WP_Error', $term );
     256        $this->assertNotWPError( $term );
    257257        $this->assertEqualSets( $post_value, wp_array_slice_assoc( $term, array_keys( $value ) ) );
    258258        $this->assertEquals( $menu_id, $term['term_id'] );
Note: See TracChangeset for help on using the changeset viewer.