Skip to content

Commit

Permalink
Fix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko committed Sep 16, 2021
1 parent 2276dfd commit f30f0eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions phpunit/class-rest-nav-menu-items-controller-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand All @@ -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' );
Expand Down

0 comments on commit f30f0eb

Please sign in to comment.