assertFalse( comments_open( 99999 ) ); } /** * @ticket 54159 */ public function test_post_exist_status_open() { $post = self::factory()->post->create_and_get(); $this->assertTrue( comments_open( $post ) ); } /** * @ticket 54159 */ public function test_post_exist_status_closed() { $post = self::factory()->post->create_and_get(); $post->comment_status = 'closed'; $this->assertFalse( comments_open( $post ) ); } }