Commit Graph
15 Commits
Author SHA1 Message Date
Belle Aerni ccc97a3ec9 Initial implementation of CI against a live FOSSBilling Install (#2067)
* Rename tests to tests-legacy

* Groundwork for live tests

* Somewhat working tests on a live instance

* Hmmmmmm

* Fix

* Fixed the other bug

* Added a handful of various tests

* Typos, all these are admin endpoints

* Bypass this check for testing envs

* Disable it for now

* Mini cleanup

* Cleanup from debugging, ran PHP-CS-Fixer
2024-01-14 22:51:32 -08:00
Adam Daley 276df9a58e Update PHPUnit to version 10 (#1798)
* Update PHPUnit to version 10

Update composer and CI version of PHPUnit to 10, and migrate XML config to updated schema.

* Update tests for PHPUnit 10

Update tests to replace depreciated functions in PHPUnit 10. Also, remove risky tests which don't assert anything.
2023-11-09 10:43:30 +01:00
Adam Daley 778e40f461 Update Github workflows (#1203)
* Update labeler workflow

Update labeler workflow to remove old labels and paths, fix path patterns, and include more labels.

* Update release drafter workflow config

Update the release drafter workflow config to remove autolabeler options as unnecessary and currently broken.

* Update Dependabot workflow config

Update Dependabot workflow config with new Composer manifests location.

* Update spellcheck workflow

Update spellcheck workflow to change filename, also run on push, and to only check changed files.

* Merge PHP build and tests into one PHP CI workflow

* Update CKEditor workflow

Update CKEditor workflow to change file name and to only run on repos owned by the FOSSBilling organisation.

* Fix Preview double zip issue
2023-05-02 05:40:34 +01: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 b6e4f22dfb Remove old file references 2022-12-08 17:22:12 -08:00
Belle Aerni ee676ca33a Update file references 2022-11-28 17:22:50 +03:00
Belle Aerni 4d9fde7b04 Fix validateAndSanitizeEmail for international domains (#386)
* Fix validateAndSanitizeEmail for international

And write tests to prove it works as intended

* Update FOSS_Tools.php

* Update tests

* Update FOSS_ToolsTest.php

* This should fix it

* Disabled test

* Require intl polyfill
2022-10-26 22:31:40 +02:00
Yağızhan Burak Yakar ff197210d8 Follow-up 2022-05-18 20:23:15 +03:00
Yağızhan a022c683a9 Update phpunit.xml.dist 2021-10-15 19:33:33 +03:00
samapraku 8a1718c606 Upgrade tests to PHPUnit 9 2020-08-18 21:12:03 +02:00
Vaidas Lungis 3f72ea5628 add beStrictAboutChangesToGlobalState parameter
https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-4.6.0#new-features
2015-06-01 14:42:49 +03:00
fordnox 02026d0610 Add coveralls.io 2015-03-05 11:43:33 +02:00
fordnox 056f31c49e Move Di test to integration test as it requires DB connection 2014-11-03 13:10:50 +02:00
fordnox 5af4cc20d9 Initial release 2014-11-03 09:00:47 +02:00