Make WordPress Core

Ticket #24674: query.php.diff

File query.php.diff, 547 bytes (added by nunomorgadinho, 11 years ago)

unit test

  • tests/phpunit/tests/post/query.php

     
    631631        }
    632632
    633633        /**
     634         * @ticket 24674
     635         */
     636        function test_is_page() {
     637                // try to fetch a page with ID 0
     638                $post_0 = get_post(0);
     639
     640                // the page doesn't exist so is_page should return false
     641                $this->assertFalse( is_page($post_0) );
     642        }
     643
     644        /**
    634645         * @ticket 22448
    635646         */
    636647        function test_the_posts_filter() {