Skip to content

Commit

Permalink
Fix tests since WP_Error signature changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Feb 8, 2021
1 parent 4e5f6ea commit 648d21c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test-cmb-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,7 @@ public function test_ensure_array() {
$this->assertEquals( array( 'test' ), CMB2_Utils::ensure_array( 'test' ) );
$this->assertEquals( array( 'test' ), CMB2_Utils::ensure_array( array( 'test' ) ) );

$this->assertEquals( array(
'errors' => array(),
'error_data' => array(),
), CMB2_Utils::ensure_array( new WP_Error ) );
$this->assertEquals( array(), CMB2_Utils::ensure_array( new CMB2_Utils ) );
}

public function test_url_set() {
Expand Down

0 comments on commit 648d21c

Please sign in to comment.