Commit Graph

342 Commits

Author SHA1 Message Date
James Cole 413df5a005 Expand tests 2020-11-07 14:05:53 +01:00
James Cole 372c6ac667 Various issues fixed (SonarQube) 2020-10-26 19:15:57 +01:00
James Cole a7d15ef287 Temp fix for tes 2020-10-26 06:45:24 +01:00
James Cole 4c10f2b960 Test improv 2020-10-18 08:01:22 +02:00
James Cole acfc976f6d New tests 2020-10-10 11:21:14 +02:00
James Cole 76cfdef27d Remove old tests. To be reinstated later. 2020-10-10 11:20:52 +02:00
James Cole 6671c6d45c Create some new test code. 2020-10-04 10:56:10 +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 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 d6564f7b7b Clean up test code. 2020-07-30 20:48:07 +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 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 7f46cf805c Update email address. 2020-02-16 13:59:55 +01:00
James Cole 39d61feede Update some tests. 2020-01-05 19:29:28 +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 5623c3c43f Clean up some tests 2019-09-04 21:05:50 +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 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 fc78c32fca Add newline to files 2019-08-17 12:09:03 +02:00
James Cole b53cbbe469 Fix test coverage. 2019-08-17 12:08:09 +02:00
James Cole 1d4434698e Fix some tests. 2019-08-17 11:32:05 +02:00
James Cole 6d1bfd3956 Code cleanup 2019-08-17 10:54:16 +02:00
James Cole 1974d5f1e3 Code cleanup 2019-08-17 10:48:28 +02:00
James Cole 893c83e086 Fix tests. 2019-08-12 17:36:37 +02:00
James Cole 1e3d85439e Last minute fixes in test code and UI 2019-08-09 18:06:43 +02:00
James Cole fd2f4e1459 Fix test coverage. 2019-08-09 05:58:52 +02:00
James Cole 2147caf3ef Fix tests 2019-08-04 11:12:24 +02:00
James Cole 62b5cf04ad Refactor tests and code to handle new 2FA methods. 2019-08-04 10:27:37 +02:00
James Cole 7f1bd19e45 remove "twoFactorAuthEnabled" from preferences. Kill switches for all code that references them (easier for refactor) 2019-08-03 19:46:12 +02:00
James Cole 75c2529d3e Improve test coverage. 2019-08-03 10:50:43 +02:00
James Cole 40dd2e0f7f Improve test coverage. 2019-08-03 04:46:47 +02:00
James Cole 9b574ce7ad Improve test coverage. 2019-07-31 16:53:09 +02:00
James Cole 67c0ef6ec6 Improve test coverage. 2019-07-27 13:54:06 +02:00
James Cole d94d34ca63 Expand test coverage. 2019-07-26 17:48:24 +02:00
James Cole 6ff4a0b45c Improve test coverage. 2019-07-25 14:19:49 +02:00
James Cole ee95606ec0 Improve test coverage. 2019-07-24 19:02:41 +02:00
James Cole 226e2f7185 Improve test coverage. 2019-07-23 17:33:23 +02:00
James Cole 1e7e0facf1 Improve test coverage. 2019-07-22 19:23:14 +02:00