Ticket #33372: 33372_unit_test_2.diff
File 33372_unit_test_2.diff, 591 bytes (added by , 8 years ago) |
---|
-
tests/phpunit/tests/query/parseQuery.php
51 51 52 52 $this->assertSame( true, $q->query_vars['s'] ); 53 53 } 54 55 /** 56 * @ticket 33372 57 */ 58 public function test_parse_query_p_negative_int() { 59 $q = new WP_Query(); 60 $q->parse_query( array( 61 'p' => -3, 62 ) ); 63 64 $this->assertSame( -3, $q->query_vars['p'] ); 65 $this->assertSame( '404', $q->query_vars['error'] ); 66 } 67 54 68 }