#37851 closed defect (bug) (fixed)
Tests in Tests_Query_Conditionals fail when run independently
| Reported by: | johnbillion | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Some tests in the Tests_Query_Conditionals class fail when run via phpunit --filter Tests_Query_Conditionals. When running the test suite as a whole, they pass as expected.
There were 6 failures: 1) Tests_Query_Conditionals::test_category_feed is_archive, is_category is expected to be true. is_comment_feed, is_page, is_singular is expected to be false. Failed asserting that false is true. ~/tests/phpunit/includes/testcase.php:626 ~/tests/phpunit/tests/query/conditionals.php:363 2) Tests_Query_Conditionals::test_category_paged is_archive, is_category, is_paged is expected to be true. is_404 is expected to be false. Failed asserting that false is true. ~/tests/phpunit/includes/testcase.php:626 ~/tests/phpunit/tests/query/conditionals.php:379 3) Tests_Query_Conditionals::test_category is_archive, is_category is expected to be true. is_404 is expected to be false. Failed asserting that false is true. ~/tests/phpunit/includes/testcase.php:626 ~/tests/phpunit/tests/query/conditionals.php:386 4) Tests_Query_Conditionals::test_tag_feed is_archive, is_tag is expected to be true. is_comment_feed, is_page, is_singular is expected to be false. Failed asserting that false is true. ~/tests/phpunit/includes/testcase.php:626 ~/tests/phpunit/tests/query/conditionals.php:397 5) Tests_Query_Conditionals::test_tag_paged is_archive, is_paged, is_tag is expected to be true. is_404 is expected to be false. Failed asserting that false is true. ~/tests/phpunit/includes/testcase.php:626 ~/tests/phpunit/tests/query/conditionals.php:415 6) Tests_Query_Conditionals::test_tag is_archive, is_tag is expected to be true. is_404 is expected to be false. Failed asserting that false is true. ~/tests/phpunit/includes/testcase.php:626 ~/tests/phpunit/tests/query/conditionals.php:422
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 38407: