[wp-trac] [WordPress Trac] #37851: Tests in Tests_Query_Conditionals fail when run independently

WordPress Trac noreply at wordpress.org
Sat Aug 27 16:58:04 UTC 2016


#37851: Tests in Tests_Query_Conditionals fail when run independently
------------------------------+-------------------------
 Reporter:  johnbillion       |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  4.7
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+-------------------------
 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
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37851>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list