Tests: Remove some unused variables in phpunit/tests/filters.php.

Follow-up to [29422], [31014].

Props azouamauriac.
See #54725.

git-svn-id: https://develop.svn.wordpress.org/trunk@52983 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-03-23 14:48:28 +00:00
parent b3d6638139
commit 041328b241

View File

@@ -202,7 +202,6 @@ class Tests_Filters extends WP_UnitTestCase {
public function test_remove_all_filters_should_respect_the_priority_argument() {
$a = new MockAction();
$tag = __FUNCTION__;
$val = __FUNCTION__ . '_val';
add_filter( $tag, array( $a, 'filter' ), 12 );
$this->assertTrue( has_filter( $tag ) );
@@ -313,7 +312,6 @@ class Tests_Filters extends WP_UnitTestCase {
public function test_has_filter_after_remove_all_filters() {
$a = new MockAction();
$tag = __FUNCTION__;
$val = __FUNCTION__ . '_val';
// No priority.
add_filter( $tag, array( $a, 'filter' ), 11 );