0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
Commit Graph

118 Commits

Author SHA1 Message Date
David Goodwin
3c7da4f3b8 Refactor some methods
PFAHandler::store() -> PFAHandler::save();
 PFAHandler::storemore() -> PFAHandler::postSave();
 PFAHandler::beforestore() -> PFAHandler::preSave();
2020-09-25 21:29:45 +01:00
David Goodwin
10c92da8c8 improve domain handler test 2020-09-24 22:32:19 +01:00
David Goodwin
12f68a6e3a composer format time 2020-08-13 15:27:47 +01:00
David Goodwin
5bd5bdc25b merge https://github.com/postfixadmin/postfixadmin/pull/375 add unit test 2020-08-13 15:00:22 +01:00
David Goodwin
ef1fb36133 improve unit tests for PostgreSQL 2020-06-23 21:43:19 +01:00
David Goodwin
85e15790bb should fix: #351 2020-05-02 19:08:47 +01:00
David Goodwin
3cd62f9f4f update to phpunit v8, try changing coveralls library, update github action 2020-04-14 21:03:10 +01:00
David Goodwin
1c0fd02323 composer format time 2020-03-14 22:34:52 +00:00
David Goodwin
3b9d8f867e merge sha512.b64 encrypt support - see https://github.com/postfixadmin/postfixadmin/issues/58 2020-03-14 22:30:51 +00:00
David Goodwin
5e1a4e27dd ensure edit works 2020-03-03 09:49:46 +00:00
David Goodwin
79ee5f82cb add a far better MailboxHandler test case 2020-03-02 09:55:44 +00:00
David Goodwin
01b4d6c587 cleanup db after running 2020-03-02 09:55:35 +00:00
David Goodwin
6a7abbe663 fix formatting 2020-03-02 09:41:31 +00:00
David Goodwin
28a3f5f157 better testing 2020-03-02 09:37:17 +00:00
David Goodwin
c66755a0da remove test for code that probably does not work 2019-09-17 21:45:20 +01:00
David Goodwin
cd8cf289b4 more empty tests 2019-09-17 21:40:41 +01:00
David Goodwin
f61cb513ae might fix pg failing test? 2019-09-17 21:33:25 +01:00
David Goodwin
0e9a1ff0ff emptyish tests 2019-09-17 21:31:16 +01:00
David Goodwin
a485a2d861 cleanup after test 2019-09-17 21:26:37 +01:00
David Goodwin
946c47dd66 postgres requires fkeys exist 2019-09-17 21:13:49 +01:00
David Goodwin
958df260ec mostly empty test 2019-09-17 21:05:44 +01:00
David Goodwin
a603d36224 format 2019-09-17 20:46:52 +01:00
David Goodwin
29d990f5f4 fix page browser test for sqlite; see #87 and #161 2019-09-17 20:46:32 +01:00
David Goodwin
71e7859c91 see #161 and #87 - unit test that seems to trigger this bug 2019-09-15 21:11:20 +01:00
David Goodwin
28bef9e136 output $sqlite file .... 2019-09-15 21:08:46 +01:00
David Goodwin
8e2e4eb189 run: composer format 2019-06-08 20:38:54 +01:00
David Goodwin
cc19870923 drop function: db_connect_with_errors(); just throw from db_connect() if something goes wrong 2019-06-07 16:23:34 +01:00
David Goodwin
dcef888587 token test coverage 2019-03-01 21:20:34 +00:00
David Goodwin
e9ed15143e add token MailboxHandler test 2019-02-18 21:20:07 +00:00
David Goodwin
de5b739d4a drop unnecessary common.php 2019-02-18 21:19:54 +00:00
David Goodwin
81fed601a2 remove var_dumps 2019-02-16 19:47:12 +00:00
David Goodwin
079462bb29 wrong password variable/key 2019-02-16 19:27:27 +00:00
David Goodwin
d6fc337272 dump mysql config things; lets fumble about in the dark once again and see... 2019-02-16 19:17:27 +00:00
David Goodwin
d30c122f37 possible handling of mysql socket file 2019-02-15 22:10:31 +00:00
David Goodwin
018f5d9e05 check output / travis fun 2019-02-15 22:05:01 +00:00
David Goodwin
4cb36857da possibly better defaults/output 2019-02-15 21:58:41 +00:00
David Goodwin
f52aa9929a re-format 2019-02-15 21:38:42 +00:00
David Goodwin
d95ee79b9a reformat 2019-02-15 21:31:32 +00:00
David Goodwin
69b9d9671c fix PaCrypt test 2019-02-15 21:31:21 +00:00
David Goodwin
dcb60a670c try adding mysql + postgres support to tests 2019-02-15 21:30:59 +00:00
David Goodwin
a05f87723f reformat 2019-02-10 12:12:28 +00:00
David Goodwin
0afdb5619b fix tests 2019-02-10 11:08:18 +00:00
David Goodwin
b4564958a1 phpdoc; touch sqlite file before trying to use it in tests 2019-02-10 11:03:52 +00:00
David Goodwin
98536f03e8 fix sqlite upgrade check; remove test database between runs; ignore lib/array_column.php from linting 2019-01-06 21:39:54 +00:00
David Goodwin
803e2342f8 fix psalm issues; reformat; rename new db functions 2019-01-06 21:32:58 +00:00
David Goodwin
1176c9ce78 reformat; fix some transition bugs 2019-01-06 21:32:58 +00:00
David Goodwin
ea33d9951a try migrating to pdo 2019-01-06 21:32:58 +00:00
David Goodwin
a500d2557e fix indentation 2019-01-03 19:47:42 +00:00
David Goodwin
897893f3ce fix indentation 2019-01-03 18:51:11 +00:00
David Goodwin
b2e814967f try and get working under travis ... 2018-12-29 21:45:12 +00:00
David Goodwin
590c80f0bc add more unit tests; re-enable random_int warning in functions.inc.php for old php versions etc etc 2018-12-29 20:54:25 +00:00
David Goodwin
4fcdba9cf4 run php-cs-fixer (code reforamt) 2018-12-28 19:31:43 +00:00
David Goodwin
97528f3ebd remove var_dumps; fix assertEqual -> assertEquals and other random psalm findings 2018-12-27 13:54:41 +00:00
David Goodwin
93cc4d9e8c update phpunit tests to use different parent class 2018-12-27 13:14:10 +00:00
David Goodwin
7282928e6d update generate_password() to allow length to be specified; update test 2018-05-02 21:19:47 +01:00
David Goodwin
b48f99d4c6 reformat (phpcs) 2018-05-02 12:54:17 +01:00
David Goodwin
2f2730ffa0 add more tests 2018-04-29 21:53:46 +01:00
David Goodwin
0d211949c9 skip tests unless configuraton updated 2018-04-29 20:27:33 +01:00
David Goodwin
b79ad2ae28 composer format ... 2018-02-19 21:01:23 +00:00
David Goodwin
6446f3f6cc split up pacrypt() into different functions; add some minimal test coverage 2018-02-19 20:59:52 +00:00
David Goodwin
12242b0893 add ZF1 as a dependency and phpunit; remove require/include calls from tests/ 2018-02-18 20:23:15 +00:00
Adrien Crivelli
15df6c1d7b
Reformat everything with PHP-Cs-Fixer 2018-01-26 23:54:37 +09:00
David Goodwin
3be13f059d this will probably migrate us to phpunit; stupid dev env is misbehaving though so it is hard to test
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1017 a1433add-5e2c-0410-b055-b7f2511e0802
2011-03-17 22:38:03 +00:00
David Goodwin
820256011f go away; move to use phpunit from pear
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1016 a1433add-5e2c-0410-b055-b7f2511e0802
2011-03-17 22:13:19 +00:00
Christian Boltz
eb6e7e0709 model/*, tests/*:
- added a vim: comment for tab expansion etc.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@628 a1433add-5e2c-0410-b055-b7f2511e0802
2009-04-15 21:54:18 +00:00
David Goodwin
0ab2de5d9e add testing for xmlrpc alias manipulations
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@587 a1433add-5e2c-0410-b055-b7f2511e0802
2009-03-16 20:16:50 +00:00
David Goodwin
8d44769372 add tests for User stuff
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@584 a1433add-5e2c-0410-b055-b7f2511e0802
2009-03-16 19:49:19 +00:00
David Goodwin
9ee45c69c8 tests: add initial simpletest unit tests for the xmlrpc stuff
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@581 a1433add-5e2c-0410-b055-b7f2511e0802
2009-03-15 21:24:56 +00:00