Ticket #33372: 33372_unit_test.diff
File 33372_unit_test.diff, 560 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 public function test_parse_query_p_negative_int() { 56 $q = new WP_Query(); 57 $q->parse_query( array( 58 'p' => -3, 59 ) ); 60 61 $this->assertSame( -3, $q->query_vars['p'] ); 62 $this->assertSame( '404', $q->query_vars['error'] ); 63 } 64 54 65 }