James Cole
5ae786516a
Mark all tests as incomplete.
2020-07-30 20:49:40 +02:00
Hosh Sadiq
14dd185717
Use php-intl to format currencies
...
Currently the php function `number_format` is used to format currencies.
This is problematic as we have to figure out different things for
different currencies ourselves. These formats are determined based on
the libc's locale functions.
The issue arises where an OS doesn't have the proper locales installed,
or, in some cases, it's not supported (see below on multiple issues).
This addresses this issue by using the php-intl extensions to format the
numbers based on the locale. The extension is already a requirement in
`composer.json`. The solution does not rely on `LC_MONETARY` from the
underlying libc (which in Alpine Linux's case, which uses musl, is not
supported as of yet).
List of issues that are related and would potentially be fixed using
this PR:
- #2298
- #2946
- #3070
- #3306
- #3519
2020-07-19 18:34:39 +01:00
James Cole
7f46cf805c
Update email address.
2020-02-16 13:59:55 +01:00
James Cole
c341d46e9f
Update copyright of Firefly III to the GNU Affero General Public License as suggested by @nxxxse in #2607 . This applies to all code in this commit from this moment onwards.
2019-10-02 06:45:03 +02:00
James Cole
5fb7635100
Remove double lines from code.
2019-08-28 16:28:14 +02:00
James Cole
6ff4a0b45c
Improve test coverage.
2019-07-25 14:19:49 +02:00
James Cole
b7a4b0fdfd
Refactored a lot of tests.
2019-07-21 17:15:06 +02:00
James Cole
784d990e20
Remove slash from method call.
2019-04-09 20:05:20 +02:00
James Cole
46ba0a5a5a
Mock more repositories in tests.
2018-09-03 18:52:46 +02:00
James Cole
eaf2667abb
Fix test method names.
2018-09-02 20:27:26 +02:00
James Cole
7dc72a2894
Add the ability to make transactions to and from liability accounts.
2018-08-25 22:10:10 +02:00
James Cole
eefa84a77b
Remove method pointers from tests.
2018-08-09 20:17:15 +02:00
James Cole
5908c0ce8c
Code cleanup and realign.
2018-08-06 19:14:30 +02:00
James Cole
a7b8470d9e
Expand test coverage.
2018-06-01 22:04:52 +02:00
James Cole
4d6bc55723
Update test code.
2018-05-11 19:58:10 +02:00
James Cole
e126427809
Improve code quality and fix test coverage.
2018-04-28 10:27:33 +02:00
James Cole
0a71077513
Push updated tests.
2018-03-28 19:38:20 +02:00
James Cole
dafddfa39a
Fix all tests.
2018-03-24 06:08:50 +01:00
James Cole
36113f84be
make sure randomly selected journals match prerequisites.
2018-03-02 17:07:32 +01:00
James Cole
46f4fa1a7d
Expand tests.
2018-02-28 15:50:00 +01:00
James Cole
085876dd83
Update copyright [skip ci]
2017-12-17 14:42:21 +01:00
James Cole
b08af77c98
Fixed a lot of tests and associated code.
2017-12-17 14:06:14 +01:00
James Cole
781ca052d8
Code cleanup.
2017-11-22 21:12:27 +01:00
James Cole
ac461d64a8
New copyright notice.
2017-10-21 08:40:00 +02:00
James Cole
e68594a93b
Various code cleanup.
2017-10-05 11:49:06 +02:00
James Cole
9803932324
Various code clean up.
2017-08-12 10:27:45 +02:00
James Cole
5ef2067836
Some code cleanup.
2017-07-08 06:28:44 +02:00
James Cole
e3cd11ec2e
Various code coverage and test related fixes.
2017-04-22 07:05:31 +02:00
James Cole
2db8d25038
This should fix tests
2017-03-16 20:46:18 +01:00
James Cole
e53d294c1c
Expand tests.
2017-03-12 21:24:34 +01:00