Skip to content

Commit

Permalink
Update expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Dec 11, 2024
1 parent f5076ca commit ebf39ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/event/event-form-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function setUp(): void {
public function test_user_is_not_logged_in() {
wp_set_current_user( 0 );
$form_data = $this->event_form_handler_factory->future_inactive_event_form_data( 'create_event', $this->now );
$response = $this->event_form_handler->handle( $form_data );
$response = $this->event_form_handler->process_form( $form_data );

$this->assertEquals( '{"success":false,"data":"The user must be logged in."}', $response );
$this->assertEquals( 'The user must be logged in.', $response->get_error_message() );
}
}

0 comments on commit ebf39ae

Please sign in to comment.