Skip to content

Commit

Permalink
test: include nested delete action call
Browse files Browse the repository at this point in the history
This updates the acceptance test's kf scheme with a call to a delete_user
action so that we can ensure it does not fail by incorrectly parsing as
and SQL statement.
  • Loading branch information
jchappelow committed Mar 11, 2024
1 parent 8323dd3 commit 4db70b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/acceptance/test-data/test_db.kf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ action create_post($id, $title, $content) public {
), $title, $content);
}

action delete_nested() public {
delete_user(); // ensure it parses as an action call, not a SQL statement (DELETE)
}

action delete_post($id) public {
DELETE FROM posts
WHERE id = $id AND user_id = (
Expand Down

0 comments on commit 4db70b4

Please sign in to comment.