From 1c62c7305551df96124b35184b4ab6c699ea3125 Mon Sep 17 00:00:00 2001 From: "Florine W. Dekker" Date: Mon, 28 Nov 2022 17:41:16 +0100 Subject: [PATCH] Write tests for UserManager Also fixes a bug with checking token validity dates, reorders some methods for clarity, and ensures that the login menu is not shown in the password reset screen. --- package.json | 2 +- src/main/index.html | 2 +- .../fwdekker/deathnotifier/UserManager.php | 148 +++-- .../deathnotifier/DatabaseTestCase.php | 8 +- .../deathnotifier/UserManagerTest.php | 627 +++++++++++++++++- .../validator/IsEmailRuleTest.php | 6 +- .../validator/IsNotBlankRuleTest.php | 10 +- .../validator/LengthRuleTest.php | 10 +- .../deathnotifier/validator/RuleTest.php | 18 +- .../deathnotifier/validator/ValidatorTest.php | 32 +- 10 files changed, 735 insertions(+), 128 deletions(-) diff --git a/package.json b/package.json index ed5d70e..d36e43f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "death-notifier", - "version": "0.14.10", "_comment_version": "Also update version in `composer.json`!", + "version": "0.14.11", "_comment_version": "Also update version in `composer.json`!", "description": "Get notified when a famous person dies.", "author": "Florine W. Dekker", "browser": "dist/bundle.js", diff --git a/src/main/index.html b/src/main/index.html index c02442e..ecd63ac 100644 --- a/src/main/index.html +++ b/src/main/index.html @@ -56,7 +56,7 @@ Click here to return to the main page

-
+