Changeset 52389 for trunk/tests/phpunit/tests/term/wpSetObjectTerms.php
- Timestamp:
- 12/19/2021 01:42:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpSetObjectTerms.php
r52010 r52389 134 134 135 135 $terms = array( 136 rand_str(),137 rand_str(),138 rand_str(),136 'term0', 137 'term1', 138 'term2', 139 139 ); 140 140 … … 165 165 public function test_set_object_terms_invalid() { 166 166 // Bogus taxonomy. 167 $result = wp_set_object_terms( self::$post_ids[0], array( rand_str() ), rand_str());167 $result = wp_set_object_terms( self::$post_ids[0], array( 'foo' ), 'invalid-taxonomy' ); 168 168 $this->assertWPError( $result ); 169 169 }
Note: See TracChangeset
for help on using the changeset viewer.