mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user