Changeset 52389 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 12/19/2021 01:42:37 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r52010 r52389 18 18 public function test_get_unknown_taxonomies() { 19 19 // Taxonomies for an unknown object type. 20 $this->assertSame( array(), get_object_taxonomies( rand_str()) );20 $this->assertSame( array(), get_object_taxonomies( 'unknown' ) ); 21 21 $this->assertSame( array(), get_object_taxonomies( '' ) ); 22 22 $this->assertSame( array(), get_object_taxonomies( 0 ) ); … … 145 145 146 146 // Make up a new taxonomy name, and ensure it's unused. 147 $tax = rand_str();147 $tax = 'tax_new'; 148 148 $this->assertFalse( taxonomy_exists( $tax ) ); 149 149 … … 159 159 160 160 // Make up a new taxonomy name, and ensure it's unused. 161 $tax = rand_str();161 $tax = 'tax_new'; 162 162 $this->assertFalse( taxonomy_exists( $tax ) ); 163 163
Note: See TracChangeset
for help on using the changeset viewer.