Commit Graph

40 Commits

Author SHA1 Message Date
David Bomba b08c575b35 php-cs-fix for tests 2025-10-29 11:13:52 +11:00
David Bomba 1a438ecd64 Remove annotations from tests 2024-09-16 21:13:55 +10:00
David Bomba 8160af4ef4 PHP CS Fixer 2024-08-22 16:57:52 +10:00
David Bomba 036aca49a4 Rollback for new payment flow 2024-08-22 16:45:06 +10:00
David Bomba 698a376de3 remove cache build steps 2024-06-21 10:29:38 +10:00
David Bomba 6b1c9b59b8 Fixes for cache 2023-12-03 09:10:50 +11:00
David Bomba f7340d6114 PHP CS Fixer 2023-11-26 18:41:42 +11:00
David Bomba db826a6a34 Rollback for ledger adjustments 2023-11-07 21:58:52 +11:00
David Bomba 2c5b94c474 Ledger Tests 2023-11-07 21:16:33 +11:00
David Bomba 7973d7c882 Fixes for refunds with credits present 2023-09-27 14:12:03 +10:00
David Bomba 4babfbb651 php-cs-fixer 2023-02-16 12:36:09 +11:00
David Bomba d708d054f2 Improve how tests function under parallel testing 2023-01-18 17:35:43 +11:00
Shift 4f7a8f9752
Set return type of base TestCase methods
From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html
2022-06-21 10:00:57 +00:00
Shift 19080933b6
Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions.

You may customize the code style applied by adding a [PHP CS Fixer][1] or [PHP CodeSniffer][2] ruleset to your project root. Feel free to use [Shift's Laravel ruleset][3] to help you get started.

For more information on customizing the code style applied by Shift, [watch this short video][4].

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://github.com/squizlabs/PHP_CodeSniffer
[3]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
[4]: https://laravelshift.com/videos/shift-code-style
2022-06-21 09:57:17 +00:00
David Bomba e153a0a06a Update license 2022-06-08 14:25:44 +10:00
David Bomba ba5037c6da Refactor Ledger Service 2022-05-06 08:40:34 +10:00
David Bomba 8a6eea8350 Fixes for regression - incorrect type setting in ClientSettings 2022-04-22 22:01:32 +10:00
David Bomba b3f753cbf3 Fixes for tests 2022-03-29 19:57:14 +11:00
David Bomba 539fc1dcfd Change location for test png 2022-01-11 15:08:39 +11:00
David Bomba 39ab665ce8 Fixes for tests 2021-11-10 09:11:56 +11:00
David Bomba d768c334cb Fixes for line items 2021-08-17 18:45:00 +10:00
David Bomba dfdcb719bc Fixes for tests 2021-07-26 22:22:57 +10:00
David Bomba a1815bccbf Minor fixes for tests 2021-06-29 20:13:10 +10:00
Benjamin Beganović 265c63c837 Update default company logo in tests 2021-06-21 07:02:28 +02:00
= 306838c417 Fixes for tests 2021-02-02 19:51:12 +11:00
David Bomba 70cb7db12f Fixes for parallel testing 2021-01-27 08:42:00 +11:00
David Bomba 934610a01c Update copyright + version bump + set canadian dollar symbol to $ 2021-01-04 08:54:54 +11:00
= 7a058c9ae6 Move logging to nlog 2020-12-30 08:10:03 +11:00
Benjamin Beganović ae88d5e08e php-cs-fixer format 2020-11-25 15:19:52 +01:00
David Bomba 6c1b952111
Refactor requests to use generics (#41)
* Validation rules for expenses

* Tests

* Tests
2020-10-22 17:46:02 +11:00
David Bomba c65950672d Fixes for model factories for L8 2020-10-01 20:49:47 +10:00
David Bomba bae82b56c1 Add license 2020-09-14 21:11:46 +10:00
David Bomba ba75a44eb8
Laravel 7.x Shift (#40)
* Adopt Laravel coding style

The Laravel framework adopts the PSR-2 coding style with some additions.
Laravel apps *should* adopt this coding style as well.

However, Shift allows you to customize the adopted coding style by
adding your own [PHP CS Fixer][1] `.php_cs` config to your project.

You may use [Shift's .php_cs][2] file as a base.

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200

* Shift bindings

PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.

* Shift core files

* Shift to Throwable

* Add laravel/ui dependency

* Unindent vendor mail templates

* Shift config files

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them so you can review the commit diff for
changes. Moving forward, you should use ENV variables or create a
separate config file to allow the core config files to remain
automatically upgradeable.

* Shift Laravel dependencies

* Shift cleanup

* Upgrade to Laravel 7

Co-authored-by: Laravel Shift <shift@laravelshift.com>
2020-09-06 19:38:10 +10:00
David Bomba 6c8e106959 cleaning up logging in tests 2020-09-03 21:01:04 +10:00
David Bomba 4dca7da070 Fixes for payment side of ledger 2020-06-06 11:07:31 +10:00
David Bomba 05443d69ec
Implement CompanyToken and Subscriptions CRUD (#3609)
* Working on Tokens CRUD

* Fixes for company filters

* Working on Token CRUD

* Tests for tokens

* Fixes for OPENApi

* Subscriptions

* Subscriptions
2020-04-09 20:48:04 +10:00
David Bomba cdc3ef12c2
Include Horizon (#3519)
* Fixes for white label

* Include Laravel Horizon

* Add Account ID to user table AND ensure a user cannot create an invoice across companies

* restart horison after an update

* Fixes for app setup

* Minor fixes

* Fixes for client routes

* Fixes for tests

* minor fixes
2020-03-24 20:15:30 +11:00
David Bomba 43e57d0117
Fixes for self-update (#3514)
* minor fix for payment notifications

* styleci

* Limit Self updating to self hosters only
:

* Fixes for designs

* Minor fixes for self-update
2020-03-21 16:37:30 +11:00
David Bomba f20b0f7720
Fixes for company tokens. (#3375)
* Testing Company Ledger

* Fixes for company ledger

* Fixes for company ledger

* Company ledger testS

* Fixes for user / client / contacts transformers

* Fixes for tests

* Fixes for tokens
2020-02-26 14:26:07 +11:00
David Bomba 3d31f810c0
Set Invitations as a default include for invoices (#3362)
* Working on importing company gateways

* Fix for companyuser settings object

* Migrate client_gateway_tokens

* Working on Notificaitons

* Working on notifications

* Failsafe for user-company

* unlink files

* Set DB for jobs

* Always have a fallback for company_id

* Fixes for user model

* Formatting for MultiDB

* Working on Company Ledger Tests

* Fixes for contact request

* Set Invitations as a default include for invoices
2020-02-24 21:15:30 +11:00