liugang
4b48e676c3
* [misc] Replace lang->extension->noticeOkFile with lang->noticeOkFile.
2025-11-28 10:32:51 +08:00
liugang
2b768ca382
- [misc] Delete the failed unit test scripts generated by Claude Code.
2025-11-25 08:37:54 +08:00
liugang
7eaf0e84a7
* [refactor] Refactor SQL processing for database installation and upgrade
...
- Extract SQL processing methods to install model for better reusability
- Add replaceContantsInSQL() and appendMySQLTableOptions() public methods
- Unify SQL constants replacement across installation and upgrade modules
- Remove duplicate SQL processing code in extension and upgrade models
- Fix __TABLE__ to __DATABASE__ in zentao.sql for consistency
- Improve code maintainability and reduce duplication
2025-11-24 16:17:02 +08:00
liugang
586391d449
* [fix] Fix CREATE TABLE SQL parsing and ensure ENGINE=InnoDB for MySQL tables
...
- Fix SQL parsing logic in extension/model.php to properly handle table definitions
- Fix SQL parsing logic in install/model.php to properly handle table definitions
- Ensure ENGINE=InnoDB is explicitly set for MySQL CREATE TABLE statements in upgrade/model.php
- This addresses potential issues with table creation and ensures consistent InnoDB engine usage
2025-11-24 16:17:02 +08:00
liugang
789def3fe7
* [perf] Move getDatabaseCharsetAndCollation() call outside the foreach loop to improve performance.
2025-11-24 16:17:02 +08:00
liugang
ef056ceab0
* [misc] Add = in sql statement to set character set and collation.
2025-11-24 16:17:01 +08:00
liugang
bed53213c4
* [refac] Enhance database SQL processing in extension module
...
- Add PostgreSQL schema prefix support for table operations
- Improve MySQL charset and collation handling in CREATE TABLE statements
- Unify database prefix replacement logic for zt_ and ztv_ tables
- Use getDatabaseCharsetAndCollation method for consistent charset configuration
2025-11-20 18:16:34 +08:00
liyang
ae7b38c164
+ [unittest] add cid.
2025-11-14 13:05:25 +08:00
liugang and Claude
bdfe71646a
+ [misc] Add unit tests for extensionZen::togglePackageDisable() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
41077f867f
+ [misc] Add unit tests for extensionZen::installExtension() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
51be6dee9a
+ [misc] Add unit tests for extensionZen::getHookFile() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
41aef3c733
+ [misc] Add unit tests for extensionZen::extractPackage() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
110187171a
+ [misc] Add unit tests for extensionZen::copyPackageFiles() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
bdee58ac13
+ [misc] Add unit tests for extensionZen::compareForLimit() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
5f076e4073
+ [misc] Add unit tests for extensionZen::checkExtractPath() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
e8179cf275
+ [misc] Add unit tests for extensionZen::checkExtensionPaths() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
14cd8a87a6
+ [misc] Add unit tests for extensionZen::checkExtension() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
fb804dea1f
+ [misc] Add unit tests for extensionZen::checkDepends() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
9f0c3c25b1
+ [misc] Add unit tests for extensionZen::checkConflicts() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
686861f7a1
+ [misc] Add unit tests for extensionZen::checkCompatible() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang and Claude
a6267f7034
+ [misc] Add unit tests for extensionZen::backupDB() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-12 08:25:46 +08:00
liugang
c8c0327b04
- [misc] Delete the failed unit test scripts generated by Claude Code.
2025-11-05 14:35:27 +08:00
liugang
a672676ba8
* [refac] Refactor the spyc class.
2025-10-27 09:08:22 +08:00
liugang and Claude
8db95e7318
* [misc] Fix unit tests for extensionModel::getPackageFile() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-11 09:36:12 +08:00
liugang
34da0d0856
- [misc] Remove useless code and files of unit tests.
2025-09-29 16:41:29 +08:00
liugang and Claude
d49f6f3db3
* [misc] Enhance unit tests for extensionModel::getExpiringPlugins() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:16:08 +08:00
liugang and Claude
bba2628548
* [misc] Enhance unit tests for extensionModel::getExpireDate() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:16:08 +08:00
liugang and Claude
09ae56a5f2
* [misc] Enhance unit tests for extensionModel::erasePackage() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:16:08 +08:00
liugang and Claude
29966494b0
* [misc] Enhance unit tests for extensionModel::updateExtension() method
...
Expanded test coverage for extension update functionality:
- Added test for empty data array handling
- Added test for empty extension code validation
- Added test for updating existing extension status
- Added test for JSON encoding of dirs and files fields
- Added test for non-existent extension code handling
- Added test for multi-field combination updates
- Added test for directory path processing functionality
- Improved test data setup with comprehensive extension scenarios
- Enhanced test structure with clear step documentation
- Better variable naming and assertion validation
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:16:03 +08:00
liugang and Claude
938ac9358c
* [misc] Enhance unit tests for extensionModel::checkVersion() method
...
Improved test coverage for extension version checking functionality:
- Added test for 'all' version string validation
- Added test for version string not containing current version
- Added test for version string matching current version
- Added test for empty version string handling
- Added test for multi-version list containing current version
- Improved test structure with clear step documentation
- Enhanced code readability with variable assignments
- Better test case descriptions for maintenance
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:16:03 +08:00
liugang and Claude
556bd3c350
* [misc] Enhance unit tests for extensionModel::saveExtension() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:15:57 +08:00
liugang and Claude
50faf889ff
* [misc] Enhance unit tests for extensionModel::removePackage() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:15:57 +08:00
liugang and Claude
2cf093c1f1
* [misc] Enhance unit tests for extensionModel::getPathsFromPackage() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:15:57 +08:00
liugang and Claude
cb1b6ca545
* [misc] Enhance unit tests for extensionModel::getPackageFile() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:15:57 +08:00
liugang and Claude
b82e0aca03
* [misc] Enhance unit tests for extensionModel::getFilesFromPackage() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:15:57 +08:00
liugang and Claude
ea769b1dde
* [misc] Enhance unit tests for extensionModel::executeDB() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:15:57 +08:00
liugang and Claude
a2b7129f90
* [misc] Enhance unit tests for extensionModel::checkIncompatible() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:15:57 +08:00
liugang and Claude
10a478ee3d
+ [misc] Add unit tests for extensionZen::compareForLimit() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
f1886b8211
+ [misc] Add unit tests for extensionZen::checkFile() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
a8e7ced58a
+ [misc] Add unit tests for extensionZen::checkDepends() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
52651b986e
+ [misc] Add unit tests for extensionZen::checkConflicts() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
5e39417df7
+ [misc] Add unit tests for extensionZen::checkCompatible() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
168ae7a6c9
+ [misc] Add unit tests for extensionZen::checkExtractPath() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
8b674b1c81
+ [misc] Add unit tests for extensionZen::checkExtensionPaths() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
8889e7d6eb
+ [misc] Add unit tests for extensionZen::togglePackageDisable() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
12f04ac6f0
+ [misc] Add unit tests for extensionZen::backupDB() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
c51dc6f668
+ [misc] Add unit tests for extensionZen::copyPackageFiles() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
e22d02e59c
+ [misc] Add unit tests for extensionZen::extractPackage() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
58eba02c96
+ [misc] Add unit tests for extensionZen::installExtension() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00
liugang and Claude
41e15220be
+ [misc] Add unit tests for extensionZen::copyHookFiles() method
...
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-15 15:09:55 +08:00