From 28b45922d56bfae4343dfc350475077a0329a4fe Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 22 Nov 2014 20:25:03 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/filters.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/phpunit/tests/filters.php b/tests/phpunit/tests/filters.php index b4ee12f353..c0eb1250c7 100644 --- a/tests/phpunit/tests/filters.php +++ b/tests/phpunit/tests/filters.php @@ -250,24 +250,6 @@ class Tests_Filters extends WP_UnitTestCase { 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 */