Changeset 25280 for trunk/tests/phpunit/tests/query/results.php
- Timestamp:
- 09/06/2013 04:35:22 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/query/results.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/results.php
r25248 r25280 487 487 $this->assertEqualSets( array( $author_1 ), $author_ids ); 488 488 } 489 490 /** 491 * @ticket 10935 492 */ 493 function test_query_is_date() { 494 $this->q->query( array( 495 'year' => '2007', 496 'monthnum' => '01', 497 'day' => '01', 498 ) ); 499 500 $this->assertTrue( $this->q->is_date ); 501 $this->assertTrue( $this->q->is_day ); 502 $this->assertFalse( $this->q->is_month ); 503 $this->assertFalse( $this->q->is_year ); 504 505 $this->q->query( array( 506 'year' => '2007', 507 'monthnum' => '01', 508 ) ); 509 510 $this->assertTrue( $this->q->is_date ); 511 $this->assertFalse( $this->q->is_day ); 512 $this->assertTrue( $this->q->is_month ); 513 $this->assertFalse( $this->q->is_year ); 514 515 $this->q->query( array( 516 'year' => '2007', 517 ) ); 518 519 $this->assertTrue( $this->q->is_date ); 520 $this->assertFalse( $this->q->is_day ); 521 $this->assertFalse( $this->q->is_month ); 522 $this->assertTrue( $this->q->is_year ); 523 524 $this->q->query( array( 525 'year' => '2007', 526 'monthnum' => '01', 527 'day' => '50', 528 ) ); 529 530 $this->assertTrue( $this->q->is_404 ); 531 $this->assertFalse( $this->q->is_date ); 532 $this->assertFalse( $this->q->is_day ); 533 $this->assertFalse( $this->q->is_month ); 534 $this->assertFalse( $this->q->is_year ); 535 } 489 536 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)