Commit Graph

11 Commits

Author SHA1 Message Date
Aleksander Machniak
ee74fe806e Password: Add support for passwords based on PHP's password_hash() function (#7724)
i.e. Bcrypt, Argon2i, Argon2id
2021-09-25 15:18:59 +02:00
Aleksander Machniak
89e54718ca Migration to PHPUnit v9 2021-07-25 11:07:56 +02:00
Aleksander Machniak
9fac4c47e8 Fix tests regression 2021-01-03 09:30:49 +01:00
Aleksander Machniak
14a94cf0d7 PHP8 fixes, CS fixes, short array syntax, tests 2020-12-09 21:11:46 +01:00
Aleksander Machniak
47d9ed6d0c Add support for PHPUnit 6 and 7 (#6870)
Fixes composer dependencies: Package phpunit/phpunit-mock-objects is abandoned

We cannot support v8 yet because of errors like:
Declaration of MailFunc::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void
It would require dropping PHP < 7.1 support.
2019-12-28 09:37:45 +01:00
Aleksander Machniak
cc1a1d95fe Correct property name 2019-10-16 12:40:41 +02:00
Aleksander Machniak
6d17e58380 Add basic test for password drivers 2019-06-30 09:16:44 +02:00
Maikel Linke
bd5eaf98aa Handle null or non-JSON result of cPanel UAPI
More unit testing. More documentation.
2016-12-10 08:45:08 +11:00
Maikel Linke
dd29ca1ee8 Correct decoding of JSON response
The old version assumed `json_decode` would return an associative array.
While it can do so if an extra option is specified, the default
behaviour is to return an object. Therefore, a successful password
change resulted in an error while parsing the response.

The new code is accessing the response as object instead. The method
is now covered by a unit test.
2016-12-08 23:35:43 +11:00
Aleksander Machniak
0ea079d604 dirname(__FILE__) -> __DIR__ 2014-10-13 14:41:55 +02:00
Aleksander Machniak
b005927f91 Add basic tests for plugins 2013-01-19 12:16:16 +01:00