Make WordPress Core

Changeset 922 in tests for trunk/tests/xmlrpc/wp/editTerm.php


Ignore:
Timestamp:
07/19/2012 04:31:22 PM (13 years ago)
Author:
ryan
Message:

Don't fatal when wp_insert_term() returns WP_Error. Props kurtpayne. fixes #107

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/xmlrpc/wp/editTerm.php

    r904 r922  
    1313
    1414        $this->parent_term = wp_insert_term( 'parent' . rand_str() , 'category' );
     15        $this->assertInternalType( 'array', $this->parent_term );
    1516        $this->child_term = wp_insert_term( 'child' . rand_str() , 'category' );
     17        $this->assertInternalType( 'array', $this->child_term );
    1618        $this->post_tag = wp_insert_term( 'test' . rand_str() , 'post_tag' );
     19        $this->assertInternalType( 'array', $this->post_tag );
    1720    }
    1821
Note: See TracChangeset for help on using the changeset viewer.