8 Commits
Author SHA1 Message Date
Belle Aerni 59027a10f4 Add a configurable cron API guest endpoint (#1909)
* Add a configurable cron API guest endpoint

* PHPDoc changes

* Fix the test, added a last run check
2023-12-02 18:44:13 -08:00
Belle Aerni 50043e6211 Run Rector against our tests (#1761)
* Update rector config to include tests

* Run Rector against the tests

* Delete test-results

* Update .gitignore

* Correctly set the PHP min to 8.1, split the configs

* Corrected PHPDoc

* Deleted tests we can't really get to pass

PHPunit is hard-coded to fail when a class has a return type of `never`, which is the correct return type of our redirect function (and rightfully so).

No way to disable the exception as far as we can tell
2023-11-11 18:41:09 +00:00
Adam Daley 276df9a58e Update PHPUnit to version 10 (#1798)
* Update PHPUnit to version 10

Update composer and CI version of PHPUnit to 10, and migrate XML config to updated schema.

* Update tests for PHPUnit 10

Update tests to replace depreciated functions in PHPUnit 10. Also, remove risky tests which don't assert anything.
2023-11-09 10:43:30 +01:00
Belle Aerni 3d7132321a Prune the filesystem cache during cron (#1596)
* Prune the filesystem cache during cron

* Something something fix the tests

* Move it to the system module
2023-09-20 00:08:47 +02:00
Belle Aerni ee623529ca Minor improvements to cron (#1436)
* Minor improvements to cron

* I swear these tests are high sometimes

Seriously. Why did this check pass before?

* Update Service.php

* Update ServiceTest.php
2023-07-14 17:03:22 +03:00
Belle Aerni b9c35a1747 Replace Box_Session and improve session handling (#1332)
* Replace Box_Session and improve session handling

* Improve weights, capitalize class name correctly

* Make the tests pass, update the SQL structure

* Tweak to the fingerprint class, fix more tests

* Regenerate session IDs when logging in

* Improve readability

* Update ServiceTest.php

* Tweak weights and added Huntr badge to the readme

* Improve readability, add PHPDocs, and updated weight

* Update SECURITY.md
2023-06-19 04:14:29 -07:00
Adam Daley 053f22a8bb Remove Box DI class in favour of native dependencies (#1193) 2023-04-30 08:47:52 +01:00
Belle Aerni edd6f72634 Drop the "BB" prefix 2022-11-28 17:22:50 +03:00