Skip to content

Commit

Permalink
test: clear session after every test
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Aug 17, 2023
1 parent 9c17ad2 commit 6df1af5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/AuthSessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

afterEach(function () {
deleteUser('login-user');
session_start();
session_destroy();
});

test('login should set user session', function () {
Expand Down

0 comments on commit 6df1af5

Please sign in to comment.