Commit Graph

19497 Commits

Author SHA1 Message Date
Hugo Sales 1da1f0918e
[TESTS] Raise test coverage for AdminPanel to 100% 2021-08-04 20:11:47 +00:00
Diogo Peralta Cordeiro b075ab610b
[SECURITY] Do not require email when in development 2021-08-04 17:48:00 +01:00
Diogo Peralta Cordeiro 5b858a7bc1
[DOCS][Dev] Add Debugging and Testing 2021-08-04 16:58:27 +01:00
Hugo Sales f760de43b0
[TESTS] Fixup Security controller tests to match new UI 2021-08-03 19:37:56 +00:00
Hugo Sales 960675b459
[TESTS] Raise test coverage for AdminPanel controller to 100% 2021-08-03 19:37:56 +00:00
Hugo Sales f9c1d14c7a
[TESTS] Raise test coverage for Attachment controller to 100% 2021-08-03 19:37:56 +00:00
Hugo Sales ed21290ef4
[TESTS] Add a sample image to the test dataset 2021-08-03 19:37:56 +00:00
Hugo Sales 6b098a26f7
[CORE][GSFile] Ensure files are stored inside the configured storage folder, with a relative filename in the database 2021-08-03 19:37:56 +00:00
Hugo Sales 19a966f1a9
[CORE][CONTROLLER] Add TODO to Controller base class as to where our custom exception pages would be implemented 2021-08-03 19:23:03 +00:00
Hugo Sales f5f11b6e54
[CORE][ENTITY] Allow create'ing will null values 2021-08-03 19:23:03 +00:00
Hugo Sales 9077403f65
[ImageEncoder] Don't print_r the exception as that leads to an OOM error 2021-08-03 19:23:03 +00:00
Hugo Sales bbdad515a2
[CONFIG] Ensure consistency in config file 2021-08-03 19:23:03 +00:00
Hugo Sales 7034476cc7
[TESTS] Make PHPUnit exit on first fail and some other tweaks 2021-08-03 19:23:03 +00:00
Hugo Sales 927472cf06
[UTIL][FORM] Create a utility class that defines common form fields, such as passwords 2021-08-03 19:23:02 +00:00
Hugo Sales b2456d8cd2
[TESTS] Raise test coverage for Controller/Security to 100% 2021-08-03 19:23:02 +00:00
Hugo Sales d1e92a80e5
[CORE][GSFile] Assert that the destination folder where to store the attachment is inside the INSTALLDIR and store the filepath in the database 2021-08-03 19:23:02 +00:00
Hugo Sales af951685ed
[TESTS] Add coverage ignore to TemplateController and ResetPassword (as it requires sending emails) 2021-08-03 19:23:02 +00:00
Hugo Sales 9c61e92257
[CONTROLLER][Attachment] Assert that the supplied is positive and add documentation 2021-08-03 19:23:02 +00:00
Hugo Sales 4297eb71a0
[CORE][GSFile] Change actor_id paramenter of validateAndStoreFileAsAttachment to optional and reorder them and their usages 2021-08-03 19:23:02 +00:00
Hugo Sales b89368bf6a
[AUTOGENERATED] Update entity fields for ResetPasswordRequest entity 2021-08-03 19:23:02 +00:00
Hugo Sales 5fc5df68f5
[CORE] Add repositories, as needed by the Reset Password Bundle 2021-08-03 19:23:02 +00:00
Hugo Sales a83d506d6c
[UTIL] Add a class that defines commonly used form fields 2021-08-03 19:22:54 +00:00
Hugo Sales 56481c8289
[CORE] Add passowrd reset and forgot password functionality 2021-08-03 19:22:54 +00:00
Hugo Sales 6d2f8daeae
[DEPENDENCIES] Add symfonycasts/reset-password-bundle as a dependency 2021-08-03 19:22:54 +00:00
Hugo Sales bdbd588de9
[CORE][SECURITY][EMAIL] Move email confirmation functionality to it's own static wrapper, in preparation for adding password reset functionality 2021-08-03 19:22:54 +00:00
Hugo Sales 176d604abb
[CONTROLLER][Security] Refactor and make clearer errors with duplicate nicknames and emails. Return notes as a callable, since they're not used in the default template, in the login and register pages 2021-08-03 19:22:54 +00:00
Hugo Sales bff65afe5d
[TESTS][Queue] Add @codeCoverageIgnore to select queueing functions 2021-08-03 19:22:50 +00:00
Hugo Sales 6479b698f8
[TESTS][Router] Add tests for Router and use named paramenters, as we can since PHP8 2021-08-03 19:22:16 +00:00
Hugo Sales a01914ddac
[ENTITY][LocalUser] Add method 'findByNicknameOrEmail' 2021-08-03 19:22:16 +00:00
Hugo Sales 2e3ec15827
[CORE][Controller][TESTS] Fix issue that arrises in tests where the Accept header is not specified 2021-08-03 19:22:12 +00:00
Hugo Sales 6deac21960
[EXCEPTION] Add Email related exceptions 2021-08-03 19:21:34 +00:00
Hugo Sales c4de4cab32
[UTIL][Nickname] Refactor Nickname and extract a validate function, as we'll want to perform normalization in select cases in the future, likely as a plugin 2021-08-03 19:21:34 +00:00
Hugo Sales 75af2232dc
[UI] Add TODO annotation to login template, since it's possible to login using email, so the fonrm field names should be updated 2021-08-03 19:21:31 +00:00
Hugo Sales 988d384654
[TESTS][DataFixtures] Add password and email to created test user 2021-08-03 19:15:30 +00:00
Hugo Sales 14db5d9864
[TESTS][Twig] Add @codeCoverageIgnore to select methods, as these are simple wrappers 2021-08-03 19:15:30 +00:00
Hugo Sales e0ebef594f
[TESTS][DB] Update test to reflec fact that GSActor no longer has a normalized_nickname field 2021-08-03 19:15:30 +00:00
Hugo Sales 63d26d1295
[TESTS][Nickname] Update tests to reflect new usage. Normalization functionality will be moved to a plugin 2021-08-03 19:15:30 +00:00
Hugo Sales ed850a7763
[TESTS][TemporaryFile] Update test to reflect new usage 2021-08-03 19:15:30 +00:00
Hugo Sales e196a3577d
[ENTITY] Remove 'normalized_nickname' field from GSActor as that feature will be moved to a plugin 2021-08-03 19:15:30 +00:00
Hugo Sales c0e4dec674
[TESTS][DOCUMENTATION][Module] Add documentation and exclude method from testing in Module base class 2021-08-03 19:15:30 +00:00
Hugo Sales 88ab76c480
[CORE][TemporaryFile] Add option to specify attempts and better handle when reaching the attemp limit without being able to create a file 2021-08-03 19:14:56 +00:00
Hugo Sales 1f9acaf4ef
[TESTS] Add tests for GSFile 2021-08-03 19:13:30 +00:00
Hugo Sales 55710aa33d
[DB] Refactor findOneBy method 2021-08-03 19:13:29 +00:00
Hugo Sales 8e743eabb9
[TESTS][DOCUMENTATION] Add documenation for the list events command and exclude it from unit testing 2021-08-03 19:13:29 +00:00
Hugo Sales d34155c743
[CONFIG] Make password length limits configurable 2021-08-03 19:13:29 +00:00
Hugo Sales 0d6b4093fe
[TESTS] Exclude Data Fixtures from testing, as that happens before testing 2021-08-03 19:13:29 +00:00
Hugo Sales 400716c1b2
[TESTS] Exclude class Security from testing, as it's a simple wrapper 2021-08-03 19:13:29 +00:00
Hugo Sales 75c9ffde31
[TESTS] Raise test coverage for ModuleManager to 100% 2021-08-03 19:13:29 +00:00
Hugo Sales 4258148a03
[TESTS] Exclude HTTPClient from testing, as it's a simple wrapper and we don't want to be performing HTTP requests in tests, for speed and reliability 2021-08-03 19:13:29 +00:00
Hugo Sales 6956e6907c
[TESTS] Raise test coverage for Form to 100% 2021-08-03 19:13:29 +00:00