Commit Graph
18 Commits
Author SHA1 Message Date
Belle Aerni 50043e6211 Run Rector against our tests (#1761)
* Update rector config to include tests

* Run Rector against the tests

* Delete test-results

* Update .gitignore

* Correctly set the PHP min to 8.1, split the configs

* Corrected PHPDoc

* Deleted tests we can't really get to pass

PHPunit is hard-coded to fail when a class has a return type of `never`, which is the correct return type of our redirect function (and rightfully so).

No way to disable the exception as far as we can tell
2023-11-11 18:41:09 +00:00
Adam Daley 0e5109a0a5 Refactor System Updater (#1252)
* Refactor System Updater

Refactor Box/Update to clean things up, merge related functionality, improve error checking, and move to FOSSBilling namespace.

Also refactor foss-update.php into core class, `UpdatePatcher`.

* Refactor file system actions to use Symfony Filesystem

Refactor file system actions to use Symfony Filesystem component, and declare all used resources at start of files rather than duplicating throughout.
2023-05-26 15:30:39 +01:00
Yağızhan 412e4a9fbd Standardized the class headers (#1212) 2023-05-06 13:06:17 +01:00
Yağızhan 950e4dccef Type hinting the DI methods and variables (#1201) 2023-05-01 21:01:35 +03: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 54f4f40f2c Removed tests for the Zend Framework (#1187) 2023-04-29 13:46:36 +01:00
Adam 11a1906ee7 Fix broken module tests (#867)
* Fix typo in Email module tests

Fix missing semicolon in tests for Email module causing PHPUnit to fail.

* Fix module test errors due to RedBean

Fix module tests causing error due to RedBean when being mocked in PHPUnit.

* Fix module test failures

Update module tests to fix failures, and remove obsoleted tests causing failure.
2023-02-27 10:38:20 -08: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
evrifaessa d6b79c6d4a Remainings of the SolusVM module. 2022-11-22 22:15:53 +03:00
Andrey Pavlenkoandandpavlenko 9b474dee89 Bump to Twig 3 (#1264)
* Bump to Twig 3 and update templates

* Update composer.lock

* Fix test Box\Mod\System\ServiceTest::testrenderStringTemplate

Co-authored-by: andpavlenko <lance@xosting.net.ua>
2022-04-09 11:02:17 +03:00
Yağızhan 24dc0797f4 Merged 2021-10-14 21:36:50 +03:00
samapraku 8a1718c606 Upgrade tests to PHPUnit 9 2020-08-18 21:12:03 +02:00
Muhammad Hari Suharto 82d005dd9c Add database port feature on installation step & configuration 2020-05-16 20:59:15 +07:00
4Giedrius cadd1b3a3f All tests should cleanup using tearDown() function. It results in 20-30% speed up.
http://kriswallsmith.net/post/18029585104/faster-phpunit
2015-05-26 12:40:35 +03:00
Vaidas Lungis 21acd9edcd runCrons() must use api_system instead of api_admin
issue with running cron via cron job
2015-02-17 09:31:13 +02:00
fordnox 5af4cc20d9 Initial release 2014-11-03 09:00:47 +02:00