Changeset 39993 for branches/4.7/tests/phpunit/tests/comment/wpComment.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/comment/wpComment.php
r38398 r39993 53 53 * @ticket 37738 54 54 */ 55 public function test_get_instance_should_fail_for_bool() {56 $found = WP_Comment::get_instance( true );57 58 $this->assertFalse( $found );59 }60 61 /**62 * @ticket 3773863 */64 55 public function test_get_instance_should_succeed_for_float_that_is_equal_to_post_id() { 65 56 $found = WP_Comment::get_instance( 1.0 ); … … 67 58 $this->assertEquals( 1, $found->comment_ID ); 68 59 } 69 70 /**71 * @ticket 3773872 */73 public function test_get_instance_should_fail_for_float() {74 $found = WP_Comment::get_instance( 1.6 );75 76 $this->assertFalse( $found );77 }78 79 /**80 * @ticket 3773881 */82 public function test_get_instance_should_fail_for_array() {83 $found = WP_Comment::get_instance( array( 1 ) );84 85 $this->assertFalse( $found );86 }87 88 /**89 * @ticket 3773890 */91 public function test_get_instance_should_fail_for_class() {92 $class = new stdClass();93 $found = WP_Comment::get_instance( $class );94 95 $this->assertFalse( $found );96 }97 60 }
Note: See TracChangeset
for help on using the changeset viewer.