1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

14 Commits

Author SHA1 Message Date
camer0n
baca43b023 PHP 8.4 support and dynamic loading of plugin tests (WIP) 2025-03-15 17:35:00 -07:00
camer0n
fc19cabda7 Make sure e107_config.php backup functions correctly, even when the tests are halted. 2025-03-15 17:34:14 -07:00
camer0n
ea8a814ab4 Extra tests and minor cleanup for PHP 8.3. 2023-11-28 12:18:09 -08:00
Nick Liu
432395c12e Tests: Helper\E107Base: Use more reliable check for Composer 2 format
Issue reported in Gitter:
https://matrix.to/#/!srhnCKlMgxFeuSPXPb:gitter.im/$nGHXf-miT7JsA2U-Mgr7_SDuINfSYjuHulMgfuvPNdg?via=gitter.im

Tester reported this error:

```
In E107Base.php line 103:

  First parameter must either be an object or the name of an existing class
```
2023-02-16 15:57:20 +01:00
Cameron
3b41b8a9d1 Fix for deprecation notices when running tests on PHP 8.2. Upgraded Conception to 4.2.2 2023-01-08 08:46:17 -08:00
Nick Liu
9abac0970b Tests: Correct Codeception method signature in \Helper\Base::_before() 2022-12-29 16:54:11 +01:00
Cameron
fb3888abc3 Fixes #4443 - set default stylesheet scope to 'front' when attribute has been omitted from theme.xml. 2021-03-11 09:27:38 -08:00
Cameron
4064389eb3 Restore e107_config.php on test failure. 2021-03-06 09:33:22 -08:00
Nick Liu
7c2860bec2 Composer 2 compatibility: Installed package manifest format change 2020-11-02 13:05:10 -06:00
Nick Liu
f2a7590e68 Workaround for old phpunit/php-code-coverage missing mkdir()
codecept_output_dir() might not exist when the PHP-serialized coverage
report is being generated. phpunit/php-code-coverage >= 6.0.8 fix this
by creating that directory before writing the coverage report.

PHP 5.6 can only get phpunit/php-code-coverage up to version 4.0.8,
which does not have this fix. A workaround has been introduced in this
commit to allow PHP-serialized coverage reports to be stored with PHP
5.6.
2020-01-19 15:41:02 +01:00
Nick Liu
a49b532519 Stop stepping on E107_DBG_* constants in tests
\Helper\Unit::_beforeSuite() now sets E107_DEBUG_LEVEL so that
debug_handler.php sets the debug mode.

Also fixed E_NOTICE if E107_DEBUG_LEVEL is set beforehand
2020-01-17 15:42:57 +01:00
Nick Liu
b9d4961571 Turn off web error handler for CLI (breaks a lot of stuff!)
error_handler now only runs set_error_handler in web mode.

E_ALL notices, warnings, and errors are now reported, which causes
the test harness to fail.
2020-01-17 14:48:55 +01:00
Nick Liu
3b4240bbae Quality control for e_file::unzipGithubArchive()
- MOD: PHPDoc for e_file::unzipGithubArchive()
- NEW: e_file::unzipGithubArchive(): Added exclusions for files that don't exist in production
- NEW: e_file::unzipGithubArchive(): Accept a destination path argument for a custom extraction location
- NEW: Restored unimplemented skipped list in e_file::unzipGithubArchive()
- FIX: e_file::unzipGithubArchive(): Extraction fails if parent directory of file doesn't exist
- MOD: Type hint for Base::$deployer
- NEW: Basic test for e_file::unzipGithubArchive()
2019-12-27 11:33:21 -06:00
Deltik
e49ee50d31 Preparation for merge with e107 repository
Moved all test files to e107_tests subdirectory
2019-11-27 11:18:53 -06:00