Ticket #30013: 30013-unit-test.diff
File 30013-unit-test.diff, 575 bytes (added by , 10 years ago) |
---|
-
tests/phpunit/tests/post/types.php
81 81 update_option( 'permalink_structure', $old_permastruct ); 82 82 _unregister_post_type( 'foo' ); 83 83 } 84 85 /** 86 * @ticket 30013 87 */ 88 function test_get_post_type_object_with_non_scalar_values() { 89 $this->assertFalse( get_post_type_object( array() ) ); 90 $this->assertFalse( get_post_type_object( new stdClass ) ); 91 } 92 84 93 }