You appear to be a bot. Output may be restricted
Description
Usage
Tests_Hooks_AddFilter::test_remove_and_recurse_and_add_action();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/hooks/addFilter.php
Lines:
1 to 17 of 17
public function test_remove_and_recurse_and_add_action() { $this->hook = new Wp_Hook(); $this->action_output = ''; $this->hook->add_filter( 'remove_and_add_action', '__return_empty_string', < 10, 0 ); $this->hook->add_filter( 'remove_and_add_action', array( $this, '_action_remove_and_add1' ), 11, 0 ); $this->hook->add_filter( 'remove_and_add_action', array( $this, '_action_remove_and_recurse_and_add2' ), 11, 0 ); $this->hook->add_filter( 'remove_and_add_action', array( $this, '_action_remove_and_add3' ), 11, 0 ); $this->hook->add_filter( 'remove_and_add_action', array( $this, '_action_remove_and_add4' ), 12, 0 ); $this->hook->do_action( array() ); $this->assertSame( '1-134-234', $this->action_output ); }