Changeset 39993 for branches/4.7/tests/phpunit/tests/term/wpTerm.php
- Timestamp:
- 01/26/2017 04:56:21 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/tests/phpunit/tests/term/wpTerm.php
r38398 r39993 64 64 * @ticket 37738 65 65 */ 66 public function test_get_instance_should_fail_for_bool() {67 $found = WP_Term::get_instance( true );68 69 $this->assertFalse( $found );70 }71 72 /**73 * @ticket 3773874 */75 66 public function test_get_instance_should_succeed_for_float_that_is_equal_to_post_id() { 76 67 $found = WP_Term::get_instance( 1.0 ); … … 78 69 $this->assertSame( 1, $found->term_id ); 79 70 } 80 81 /**82 * @ticket 3773883 */84 public function test_get_instance_should_fail_for_float() {85 $found = WP_Term::get_instance( 1.6 );86 87 $this->assertFalse( $found );88 }89 90 /**91 * @ticket 3773892 */93 public function test_get_instance_should_fail_for_array() {94 $found = WP_Term::get_instance( array( 1 ) );95 96 $this->assertFalse( $found );97 }98 99 /**100 * @ticket 37738101 */102 public function test_get_instance_should_fail_for_class() {103 $class = new stdClass();104 $found = WP_Term::get_instance( $class );105 106 $this->assertFalse( $found );107 }108 71 }
Note: See TracChangeset
for help on using the changeset viewer.