Commit Graph

1016 Commits

Author SHA1 Message Date
James Cole
723d1cffe2
Fix some tests, disable actions for the time being. 2020-08-01 15:06:02 +02:00
James Cole
43fc4c5f52
Expand some test code. 2020-08-01 07:55:55 +02:00
James Cole
8cebd03298
Fix namespace. 2020-08-01 05:46:10 +02:00
James Cole
57cb325639
Optimise tests 2020-08-01 05:34:32 +02:00
James Cole
e0b71c316b
Fix first test! 2020-08-01 05:32:38 +02:00
James Cole
ad76afe4f6
Correct namespace and location. 2020-08-01 05:32:17 +02:00
James Cole
895762ff18
Move tests 2020-08-01 05:31:26 +02:00
James Cole
8a91618f8d
Merge branch 'develop' into feature/ci 2020-07-31 04:55:23 +00:00
James Cole
cd19e86141
Clean up test code, prep for merge. 2020-07-31 06:53:48 +02:00
James Cole
0264184442
New trait for tests 2020-07-31 06:21:03 +02:00
James Cole
93856a3c57
Basic test, no value. 2020-07-30 21:16:14 +02:00
James Cole
7ad1458ad7
Fix test with DB fixtures 2020-07-30 20:56:12 +02:00
James Cole
5ae786516a
Mark all tests as incomplete. 2020-07-30 20:49:40 +02:00
James Cole
a590cfd881
Clean up test case 2020-07-30 20:48:47 +02:00
James Cole
d6564f7b7b
Clean up test code. 2020-07-30 20:48:07 +02:00
Hosh Sadiq
8f568d41ca
Add initial continuous integration
Currently it will run phpunit, check coding standards and run
phpstan. This can and should be build upon, so that eventually builds
are automated and hopefully reproducable.
2020-07-27 19:47:22 +01: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
f14ac5928f
Fix some tests. 2020-07-17 18:51:54 +02:00
James Cole
72a2718a93
Fix tests 2020-07-12 17:28:43 +02:00
James Cole
415fb7294c Fix sonarcloud issues 2020-06-27 17:33:18 +02:00
James Cole
b83d06294d Drop Sandstorm related code. 2020-06-27 15:19:00 +02:00
James Cole
6cc4d14fcb Remove import code. 2020-06-06 21:23:26 +02:00
James Cole
f3ac8a5888 Add newlines and remove some unused translations. 2020-05-30 07:33:06 +02:00
James Cole
74683b18f2
Fix bad namespace. 2020-03-18 15:38:28 +01:00
James Cole
524f85b9c1
Delete import related tests 2020-03-15 15:33:00 +01:00
James Cole
328c960950
Fix API tests 2020-03-15 15:32:09 +01:00
James Cole
7f46cf805c
Update email address. 2020-02-16 13:59:55 +01:00
James Cole
d0d5dea5ce
Update email address. 2020-02-16 13:59:41 +01:00
James Cole
ff44dbaea0
Update analytics code. 2020-01-17 04:30:44 +01:00
James Cole
39d61feede
Update some tests. 2020-01-05 19:29:28 +01:00
James Cole
d5416bad7c
Final tests for #2723 2019-12-26 11:37:49 +01:00
James Cole
952c9aad23
More tests for #2723 2019-12-26 11:29:54 +01:00
James Cole
fc8400cdf9
Fix and expand tests for #2723 2019-12-26 11:06:38 +01:00
James Cole
a416b682e0
Fix some tests 2019-12-22 07:50:40 +01:00
James Cole
dcd6a8d79f
Remove import tests 2019-12-22 07:45:30 +01:00
James Cole
78481b8aa9
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 07:00:58 +02: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
30f454d38a
Fix tests 2019-09-06 17:19:21 +02:00
James Cole
eb0d269ce7
Fix #2545 2019-09-06 09:37:00 +02:00
James Cole
5623c3c43f Clean up some tests 2019-09-04 21:05:50 +02:00
James Cole
f9f1fa0fcb Clean up API code and fix test code. 2019-09-04 17:39:39 +02:00
James Cole
f52584d46b Remove unused code. 2019-09-04 16:07:44 +02:00
James Cole
5c468e1c49 Fix #2383 2019-09-04 09:20:26 +02:00
James Cole
401086b75f Remove unused code. 2019-09-03 15:43:11 +02:00
James Cole
9d8625df3b Fix some pointers in test code [skip ci] 2019-08-29 21:32:50 +02:00
James Cole
19feefda2d Improve test coverage. 2019-08-29 17:53:25 +02:00
James Cole
f4eca2d4ae Test new category code. 2019-08-28 17:01:48 +02:00
James Cole
5fb7635100 Remove double lines from code. 2019-08-28 16:28:14 +02:00
James Cole
02df24bbc9 Possible fix for #2437 2019-08-23 09:41:31 +02:00
James Cole
12a64fefc8
Fix test. 2019-08-17 12:31:55 +02:00