You appear to be a bot. Output may be restricted
Description
Usage
Comment_Callback_Test::comment( $comment, $args, $depth );
Parameters
- $comment
- ( mixed ) required –
- $args
- ( mixed ) required –
- $depth
- ( mixed ) required –
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/comment/walker.php
Lines:
1 to 10 of 10
public function comment( $comment, $args, $depth ) { if ( 1 === $depth ) { $this->test_walker->assertTrue( $this->walker->has_children ); $this->test_walker->assertTrue( $args['has_children'] ); // Back compat. } elseif ( 2 === $depth ) { $this->test_walker->assertFalse( $this->walker->has_children ); $this->test_walker->assertFalse( $args['has_children'] ); // Back compat. } }