Skip to content

Commit

Permalink
Merge pull request #899 from GatherPress/mauteri-unit-test-2
Browse files Browse the repository at this point in the history
Mauteri unit test 2
  • Loading branch information
mauteri authored Sep 21, 2024
2 parents 010d16b + 13fe722 commit 302ded6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/unit/php/includes/core/classes/class-test-rsvp.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ public function test_save(): void {
// Simulate error saving RSVP.
add_filter( 'query', '__return_false' );

$user_id = $this->factory->user->create();
$result = $rsvp->save( $user_id, 'attending' );
$result = $rsvp->save( $user_1_id, 'attending' );
$expected = array(
'post_id' => 0,
'user_id' => 0,
Expand Down

0 comments on commit 302ded6

Please sign in to comment.