Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pls78 committed Oct 27, 2023
1 parent d7c62c3 commit b098118
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -806,15 +806,15 @@ 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' ],
]
);

$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' ],
]
);
Expand All @@ -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' ],
]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down

0 comments on commit b098118

Please sign in to comment.