From 16bcfa85ef26cb1d433b89f89f301397c4729654 Mon Sep 17 00:00:00 2001 From: Marco Date: Mon, 18 Sep 2017 16:10:19 +0200 Subject: [PATCH] Add tests for new method 'logOutButKeepSession' in class 'Auth' --- tests/index.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/index.php b/tests/index.php index a83e9da..1279d8d 100644 --- a/tests/index.php +++ b/tests/index.php @@ -356,6 +356,11 @@ function processRequestData(\Delight\Auth\Auth $auth) { return 'not logged in'; } } + else if ($_POST['action'] === 'logOutButKeepSession') { + $auth->logOutButKeepSession(); + + return 'ok'; + } else if ($_POST['action'] === 'logout') { $auth->logout(); @@ -659,6 +664,11 @@ function showAuthenticatedUserForm(\Delight\Auth\Auth $auth) { echo ''; echo ''; + echo '
'; + echo ''; + echo ''; + echo '
'; + echo '
'; echo ''; echo '';