Changeset 29865 for trunk/tests/phpunit/tests/term.php
- Timestamp:
- 10/09/2014 03:15:50 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term.php
r29863 r29865 113 113 114 114 public function test_term_exists_term_trimmed_to_empty_string() { 115 $this->assertSame( 0, term_exists( ' ' ) ); 115 $this->assertNull( term_exists( ' ' ) ); 116 } 117 118 /** 119 * @ticket 29589 120 */ 121 public function test_term_exists_existing_term_that_sanitizes_to_empty() { 122 wp_insert_term( '//', 'category' ); 123 $this->assertNotEmpty( term_exists( '//' ) ); 124 $this->assertNotEmpty( term_exists( '//', 'category' ) ); 125 126 wp_insert_term( '>>', 'category' ); 127 $this->assertNotEmpty( term_exists( '>>' ) ); 128 $this->assertNotEmpty( term_exists( '>>', 'category' ) ); 116 129 } 117 130
Note: See TracChangeset
for help on using the changeset viewer.