112 Commits
Author SHA1 Message Date
Yağızhan d909d77f7e -Unnecessary whitespace in the class headers (#1219) 2023-05-07 13:24:29 -07:00
Yağızhan 412e4a9fbd Standardized the class headers (#1212) 2023-05-06 13:06:17 +01:00
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +01:00
Adam Daley 053f22a8bb Remove Box DI class in favour of native dependencies (#1193) 2023-04-30 08:47:52 +01:00
Adam Daley e3967dfe96 Move composer files to project root (#1191) 2023-04-30 07:17:06 +01:00
Yağızhan ef7e060525 Implemented symfony/cache (#1184) 2023-04-29 14:38:53 +03:00
Adam Daley d4e4207d83 Update locations with extension manager naming (#1169)
Update remaining locations with new `extension_manager` naming.
2023-04-26 02:46:56 +02:00
Adam Daley 7b5d12be2b Remove Box\Config in favour of native functionality (#1150) 2023-04-24 10:31:47 +01:00
Adam Daley 67fd972efd Repace DI http-client with direct calls to symfomy/http-client (#1153) 2023-04-22 22:29:42 -07:00
YağızhanandAdam Daley 63d5847da2 New ExtensionDirectory class (#1141)
* Caught a typo

* New ExtensionDirectory class

* Tests

* Tests and error handling

* Stuff

* Literally the same outcome anyway. Will write this in the future.

* Removed tests for a function that does nothing

* "stable" -> "release"

* Fix misnamed exception errors

* Update class name to ExtensionManager

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-22 23:45:24 +01:00
Yağızhan 191233ff86 Renamed Box_Requirements and Box_Version (#1146)
* Renamed Box_Requirements and Box_Version

* Fixed the reference in the GitHub workflow
2023-04-22 18:55:48 +02:00
Adam Daley ca67aeb44f Refactor request handling to use native functionality (#1122)
Refactor request handling to remove custom library/Box/Request class where possible and instead use native PHP functionality.
2023-04-21 15:07:59 +02:00
Belle Aerni 3c0ef5b4da Remove a few more useless classes (#1129)
* Remove a few more useless classes

* Fix a small typo

* Fix that test

Unless I am missing something, this must have never worked correctly.
2023-04-21 02:35:21 -07:00
Belle Aerni 0a5fb92b05 Various improvements to translatable strings (#1108)
* Various improvements to translatable strings

* Tests
2023-04-15 03:51:18 -07:00
Belle Aerni 9faa981c58 Replace usage of array_get (#989)
* Replace usage of array_get

* Fixes

* And a few more

* Remove remaining references

* Update Service.php

* Few more fixes

* Fix.. I think?

* Fix Client / Invoice updates

* Fix stats

* Fix issues noticed during code review

* More fixes

* And some more fixes :)
2023-03-27 23:44:30 -07:00
Adam Daley 9fb19e02d7 Improve date/datetime format handling and customisability (#948)
* Replace custom Twig bb_date/bb_datetime filters

Replace bb_date and bb_datetime Twig filters with format_date / format_datetime to better support i18n and customisability.

* Update templates to use format_date/format_datetime

Update all templates to use format_date/format_datetime (where appropriate and where not already used).

* Update locale configuration options

Update configuration options to include new locale settings, and ensure new options are used throughout.

* Add reset button to admin theme date picker

Add a reset button to the admin_default theme date picker to allow dates to be cleared, and fix an issue with Order module not allow blank dates. Resolves #938.
2023-03-24 23:16:07 +00:00
Adam de0bed20ec Replace various HTTP client implementations with symfony/http-client (#861)
* Replace guzzlehttp/guzzle with symfony/http-client

Replace guzzlehttp/guzzle with symfony/http-client to standardise around one globally available HTTP client.

* Replace Box\Curl library and native cURL with symfony/http-client

Replace the Box\Curl library and native cURL with symfony/http-client to standardise around one well supported HTTP client, reduce unnecessary code, and improve compatibility.

* Remove obsolete functionality from Spamchecker module

Remove obsolete functions from Spamchecker module which depended upon cURL.
2023-03-15 11:11:28 +01:00
Belle Aerni 7ecaf786d5 Move RedBeanPHP to composer (#767)
* Move RedBeanPHP to composer

* Remove missed references to rb.php

* This *should* fix the tests

* Update DummyBean.php

* Remove payment adapter tests

They.. honestly didn't test much and are proving to cause issues when moving rb.php to composer
2023-02-05 08:43:37 -08:00
Belle Aerni edb163f442 BB_PATH --> PATH 2022-11-28 17:22:51 +03:00
Belle Aerni ee676ca33a Update file references 2022-11-28 17:22:50 +03:00
evrifaessa d6b79c6d4a Remainings of the SolusVM module. 2022-11-22 22:15:53 +03:00
Belle Aerni 1aec4ade28 Replace strftime() with date() (#360)
strftime is depreciated as of PHP 8.1
2022-10-18 09:16:26 -07:00
evrifaessa 5c49ffc65d Dropped the forum module. 2022-09-30 20:56:37 +03:00
AnyxandBenjamin Aerni 4e8d83eafb Default to Huraga Green & update naming/URL (#295)
* Default to Huraga Green & update naming/URL

* Apply the code from the Orderbutton module that defaults to Huraga Green to all templates that request Huraga's color scheme. Replace incorrect setting.

* Replace some old references to BoxBilling and boxbilling.org with the FOSSBilling ones. Update LICENSE URLs.

* Fix broken test

Co-authored-by: Benjamin Aerni <belleaerni@gmail.com>
2022-09-30 05:09:02 +02:00
evrifaessa db6a1946ce Updated tests. 2022-09-24 20:04:39 +03:00
Yağızhan b89d916471 Removed links and tests related to the file manager (#270)
* Removed mod_filemanager tests

* Removed link to the removed file manager
2022-09-19 22:05:55 +02:00
Yağızhan 2a5d525859 Updated tests (#177) 2022-07-22 12:35:03 +02:00
S4 Hosting b5427fdd46 Copyright and license notices changed to correctly comply with Apache 2.0 2022-05-31 14:51:44 +03:00
CatFlip™ 1dea204c0c Literal and link references
All literal ("BoxBilling") references and link ("www.boxbilling.org") were replaced. Also replaced all fossbiling.org "http://" by "https://"
2022-05-26 17:55:34 -05:00
andpavlenko 3380a10178 Task #1276 - Rename templates to native Twig extension 2022-04-21 13:49:37 +00:00
Yağızhan 97fc3f3079 boxbilling.com -> boxbilling.org 2021-10-16 13:08:49 +03:00
Benjamin Aerni eb1dcce42b Fix a couple obvious errors (#936)
Also deleted payza as it was shut down
2021-08-07 23:07:57 -07:00
Fordnox 39ea9528a5 Remove license check 2020-11-01 03:28:24 +02:00
samapraku 8a1718c606 Upgrade tests to PHPUnit 9 2020-08-18 21:12:03 +02:00
Vaidas Lungis 282ec40399 update Invoice doBatchPaidInvoiceActivation()
optimize for cron
2015-05-22 14:35:24 +03:00
Vaidas Lungis 5785d55d59 create test case for second domain product restriction.
related c6d1cc3728
2015-04-27 13:34:52 +03:00
Vaidas Lungis a87fdfdbfe calculate correct domain product starting price value.
Default product_payment  table record created after setup of new domain product.
2015-04-27 13:34:08 +03:00
Vaidas Lungis 1be4c40cb6 change MySql reserved words in table columns
Table mod_email_queue column "from"
Table mod_email_queue column "to"
Table queue  column "mod'
2015-04-20 13:45:28 +03:00
Vaidas Lungis 2b165891aa update tests after checkRequiredParamsForArray() refactor
[ci skip]
2015-03-30 12:44:49 +03:00
4Giedrius 3743ea64a2 $di['array_get'] default return value changed to null 2015-03-26 15:50:49 +02:00
4Giedrius dca4b89576 Integration tests updated 2015-03-26 15:36:28 +02:00
Vaidas Lungis a473073ba0 replace di['api_request_data'] with di['array_get'] 2015-03-26 10:57:37 +02:00
4Giedrius 66f285a045 Added tests for $di['array_get'] 2015-03-25 17:55:50 +02:00
Vaidas Lungis 82664f4358 improve testOrderExpiration_SettingFrom_greater_ExpireIsGreater test 2015-03-25 11:38:46 +02:00
Vaidas Lungis c172a80e3e create Box\Mod\Api\Request class and add it to DI
Similar to Box_Request.
Purpose - use it when need to get param item from api call request.

Instead of
$c1 = isset($data['custom_1']) ? $data['custom_1'] : NULL ;
Use
$ci = $this->di['api_request_data']->get('custom_1' [, $defaultValue]);

This way we can reduce nPath complexity
2015-03-19 15:32:01 +02:00
Vaidas Lungis 81d87b983a fix invalid db find statement
create integration client remove test
2015-03-16 13:35:08 +02:00
Vaidas Lungis 48615ee39f create test for deposit invoice "mark as paid" action 2015-03-16 10:03:35 +02:00
Giedrius 486f5079b7 Added missing DI in integration tests 2015-03-12 10:13:25 +02:00
Vaidas Lungis 72e80f8c0a update invoice onAfterAdminCronRun hook content
remove_after_days setting is set in settings table.
2015-03-09 10:56:06 +02:00
Vaidas Lungis 8611bd997e create tests from order settings Expiration date 2015-03-06 14:43:53 +02:00