Commit Graph

9 Commits

Author SHA1 Message Date
Sabina Talipova 6d288c54f2 Add new permission group 2022-05-06 08:54:12 +12:00
Robbie Averill 1ce8c3bbdf FIX Add missing namespace import - unknown HTTP status codes are now handled 2019-07-26 11:16:31 +02:00
Robbie Averill e58190a9b3 API Rename IgnoreCodes configuration property to ignore_codes 2017-11-28 09:45:40 +13:00
Dylan Wagstaff 98dac9b314 Update unit tests to be rid of Phockito
This odd dependency is causing inclusion issues to do with namespacing and
the ability to work well with the framework (according to the dependency's
readme). The usage of the tool in this case adds no value, as it's
performing purely stub type work, rather than mock work. So instead we can
use an actual stub (simply return test values depending on input) and have
everything work well.

After removing the Phockito dependency it was found that the tests that
would skip when it isn't present were actually in a failing state. So they
had to be repaired too, mostly through the use of fixing the poor code
that was causing them to fail (as opposed to being bad tests). This is
both configuration and proceedural work.
2017-11-27 15:14:16 +13:00
Dylan Wagstaff 0374d66b32 Convert to new cache layer, clean up other overlooked points in the ss4 upgrade 2017-11-27 11:19:58 +13:00
Dylan Wagstaff 7bce7dcb2f Update tests & left over fixes from upgrader tool 2017-11-23 14:54:27 +13:00
Dylan Wagstaff 1ed9a23a71 Run the upgrader & linting tools
An initial (untested) run at a proper upgrade. Progress commit.
2017-11-23 12:56:44 +13:00
Dylan Wagstaff e6ddf0fe47 Add namespaces via `upgrade-code add-namespace` tool
Running this command for each directory in the `src` folder we generate a
valid `.upgrade.yml` which can be used by other modules that may use this
one as a dependency to upgrade themselves without issue.
2017-11-22 14:26:15 +13:00
Dylan Wagstaff 4b59fdba02 Update supporting items for SilverStripe 4 conventions
Update versions and configurations for tests and code checkers, such as
phpunit and the SilverStripe CI tools. Altered the layout of the
repository to be more in line with other SilverStripe 4 modules (including
core ones).
2017-11-22 14:01:40 +13:00