From f30f0ebaf650f9004e6547167991d2b65d678ed3 Mon Sep 17 00:00:00 2001 From: Anton Vlasenko Date: Thu, 16 Sep 2021 12:40:09 +0200 Subject: [PATCH] Fix code style. --- .../class-rest-nav-menu-items-controller-test.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/phpunit/class-rest-nav-menu-items-controller-test.php b/phpunit/class-rest-nav-menu-items-controller-test.php index cde72b55b58c58..34f4c585c9ff8e 100644 --- a/phpunit/class-rest-nav-menu-items-controller-test.php +++ b/phpunit/class-rest-nav-menu-items-controller-test.php @@ -709,9 +709,9 @@ public function test_get_item_wrong_permission() { */ public function test_filters_only_get_applied_once_when_creating_a_menu_item() { wp_set_current_user( self::$admin_id ); - add_filter( 'title_save_pre', array( $this, 'increment_filters_applied_counter') ); - add_filter( 'excerpt_save_pre', array( $this, 'increment_filters_applied_counter') ); - add_filter( 'content_save_pre', array( $this, 'increment_filters_applied_counter') ); + add_filter( 'title_save_pre', array( $this, 'increment_filters_applied_counter' ) ); + add_filter( 'excerpt_save_pre', array( $this, 'increment_filters_applied_counter' ) ); + add_filter( 'content_save_pre', array( $this, 'increment_filters_applied_counter' ) ); $request = new WP_REST_Request( 'POST', '/__experimental/menu-items' ); $request->add_header( 'content-type', 'application/x-www-form-urlencoded' ); @@ -728,9 +728,9 @@ public function test_filters_only_get_applied_once_when_creating_a_menu_item() { */ public function test_filters_only_get_applied_once_when_updating_a_menu_item() { wp_set_current_user( self::$admin_id ); - add_filter( 'title_save_pre', array( $this, 'increment_filters_applied_counter') ); - add_filter( 'excerpt_save_pre', array( $this, 'increment_filters_applied_counter') ); - add_filter( 'content_save_pre', array( $this, 'increment_filters_applied_counter') ); + add_filter( 'title_save_pre', array( $this, 'increment_filters_applied_counter' ) ); + add_filter( 'excerpt_save_pre', array( $this, 'increment_filters_applied_counter' ) ); + add_filter( 'content_save_pre', array( $this, 'increment_filters_applied_counter' ) ); $request = new WP_REST_Request( 'PUT', sprintf( '/__experimental/menu-items/%d', $this->menu_item_id ) ); $request->add_header( 'content-type', 'application/x-www-form-urlencoded' );