Remove failing test in the `hooks` group.

The removed test has been added as a patch to #21169.

Props MikeHansenMe.
See #30284.

git-svn-id: https://develop.svn.wordpress.org/trunk@30519 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges 2014-11-22 20:25:03 +00:00
parent 63f6864a9e
commit 28b45922d5
1 changed files with 0 additions and 18 deletions

View File

@ -250,24 +250,6 @@ class Tests_Filters extends WP_UnitTestCase {
return $tag; return $tag;
} }
/**
* @ticket 21169
*/
function test_filter_removal_during_filter() {
$tag = rand_str();
$a = new MockAction();
$b = new MockAction();
add_action( $tag, array($a, 'filter_append'), 11, 1 );
add_action( $tag, array($b, 'filter_append'), 12, 1 );
add_action( $tag, array($this, '_self_removal'), 10, 1 );
$result = apply_filters($tag, $tag);
$this->assertEquals( 1, $a->get_call_count(), 'priority 11 filters should run after priority 10 empties itself' );
$this->assertEquals( 1, $b->get_call_count(), 'priority 12 filters should run after priority 10 empties itself and priority 11 runs' );
$this->assertEquals( $result, $tag . '_append_append', 'priority 11 and 12 filters should run after priority 10 empties itself' );
}
/** /**
* @ticket 29070 * @ticket 29070
*/ */