Changeset 39992 for trunk/tests/phpunit/tests/post/wpPost.php
- Timestamp:
- 01/26/2017 04:52:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpPost.php
r38398 r39992 51 51 * @ticket 37738 52 52 */ 53 public function test_get_instance_should_fail_for_bool() {54 $found = WP_Post::get_instance( true );55 56 $this->assertFalse( $found );57 }58 59 /**60 * @ticket 3773861 */62 53 public function test_get_instance_should_succeed_for_float_that_is_equal_to_post_id() { 63 54 $found = WP_Post::get_instance( 1.0 ); … … 65 56 $this->assertSame( 1, $found->ID ); 66 57 } 67 68 /**69 * @ticket 3773870 */71 public function test_get_instance_should_fail_for_float() {72 $found = WP_Post::get_instance( 1.6 );73 74 $this->assertFalse( $found );75 }76 77 /**78 * @ticket 3773879 */80 public function test_get_instance_should_fail_for_array() {81 $found = WP_Post::get_instance( array( 1 ) );82 83 $this->assertFalse( $found );84 }85 86 /**87 * @ticket 3773888 */89 public function test_get_instance_should_fail_for_class() {90 $class = new stdClass();91 $found = WP_Post::get_instance( $class );92 93 $this->assertFalse( $found );94 }95 58 }
Note: See TracChangeset
for help on using the changeset viewer.