From b098118db7dc6b648b75a10382f166d956d32c68 Mon Sep 17 00:00:00 2001 From: Paolo Luigi Scala Date: Fri, 27 Oct 2023 14:34:49 +0200 Subject: [PATCH] Fix cs --- .../test-class-yoast-notification-center.php | 10 +++++----- .../notifications/test-class-yoast-notification.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/integration/notifications/test-class-yoast-notification-center.php b/tests/integration/notifications/test-class-yoast-notification-center.php index b5d0a9726fc..d6c2d9e999a 100644 --- a/tests/integration/notifications/test-class-yoast-notification-center.php +++ b/tests/integration/notifications/test-class-yoast-notification-center.php @@ -806,7 +806,7 @@ public function test_add_notifications_for_multiple_users() { $notification_for_user_1 = new Yoast_Notification( 'Hello, user 1!', [ - 'user_id' => $user_mock_1->ID, + 'user_id' => $user_mock_1->ID, 'capabilities' => [ 'wpseo_manage_options' ], ] ); @@ -814,7 +814,7 @@ public function test_add_notifications_for_multiple_users() { $notification_for_user_2 = new Yoast_Notification( 'Hello, user 2!', [ - 'user_id' => $user_mock_2->ID, + 'user_id' => $user_mock_2->ID, 'capabilities' => [ 'wpseo_manage_options' ], ] ); @@ -840,16 +840,16 @@ public function test_add_notifications_for_multiple_users() { public function test_add_notifications_only_once_for_user() { $instance = $this->get_notification_center(); - + $user_id = $this->factory->user->create(); - $user = new WP_User( $user_id ); + $user = new WP_User( $user_id ); $user->add_cap( 'wpseo_manage_options' ); $notification = new Yoast_Notification( 'Hello, user 3!', [ 'id' => 'Yoast_Notification_Test', - 'user_id' => $user_id, + 'user_id' => $user_id, 'capabilities' => [ 'wpseo_manage_options' ], ] ); diff --git a/tests/integration/notifications/test-class-yoast-notification.php b/tests/integration/notifications/test-class-yoast-notification.php index d4231d6a762..22649417e5b 100644 --- a/tests/integration/notifications/test-class-yoast-notification.php +++ b/tests/integration/notifications/test-class-yoast-notification.php @@ -61,7 +61,7 @@ public function test_not_persistent() { public function test_set_defaults() { $subject = new Yoast_Notification( 'message', [] ); $test = $subject->to_array(); - $user = wp_get_current_user(); + $user = wp_get_current_user(); $this->assertEquals( [