mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-06 12:08:10 +08:00
新增 DatabaseMaintenance 适配器,按数据库类型生成维护语句:MySQL/MariaDB 支持 REPAIR 与 OPTIMIZE,SQLite 使用 PRAGMA optimize 与 VACUUM,PostgreSQL 使用 VACUUM ANALYZE,SQL Server 使用索引重组与统计信息更新。 重构 DatabaseCommand,将 repair 与 optimize 统一收敛到维护适配器执行,针对不支持的数据库返回友好队列成功提示,避免 SQLite 等环境直接报错中断任务。 补充 DatabaseMaintenanceTest 覆盖各数据库语句生成、标识符转义和不支持提示,并将测试加入 phpunit.xml.dist 的套件列表。
63 lines
4.4 KiB
XML
63 lines
4.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<phpunit bootstrap="tests/bootstrap.php"
|
|
colors="true"
|
|
stopOnError="false"
|
|
stopOnFailure="false"
|
|
beStrictAboutTestsThatDoNotTestAnything="false">
|
|
<testsuites>
|
|
<testsuite name="ThinkAdmin Safe Unit Suite">
|
|
<file>plugin/think-library/tests/CodeTest.php</file>
|
|
<file>plugin/think-library/tests/JwtTest.php</file>
|
|
<file>plugin/think-library/tests/CommonFunctionsTest.php</file>
|
|
<file>plugin/think-library/tests/ArchitectureBoundaryTest.php</file>
|
|
<file>plugin/think-library/tests/ComposerInstallBoundaryTest.php</file>
|
|
<file>plugin/think-library/tests/RouteTemplateBoundaryTest.php</file>
|
|
<file>plugin/think-library/tests/MultAccessDispatchTest.php</file>
|
|
<file>plugin/think-library/tests/ComposerDependencyBoundaryTest.php</file>
|
|
<file>plugin/think-library/tests/MigrationOwnershipTest.php</file>
|
|
<file>plugin/think-library/tests/FormBuilderTest.php</file>
|
|
<file>plugin/think-library/tests/PageBuilderTest.php</file>
|
|
<file>plugin/think-library/tests/RequestTokenServiceTest.php</file>
|
|
<file>plugin/think-plugs-install/tests/InstallCommandTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/helper/PublishTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/helper/DatabaseMaintenanceTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/helper/IndexNameServiceTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/helper/PluginMenuServiceTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/RbacAccessTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/ApiSystemControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/ApiQueueControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/AuthControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/BaseControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/ConfigPageRenderTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/IndexControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/LoginControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/MenuControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/OplogControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/PlugsControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/QueueControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/UploadControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/UserControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/FileControllerTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/ConsoleCssUtilityTest.php</file>
|
|
<file>plugin/think-plugs-account/tests/AccountRuntimeTest.php</file>
|
|
<file>plugin/think-plugs-account/tests/AccountIntegrationTest.php</file>
|
|
<file>plugin/think-plugs-account/tests/AccountCenterControllerTest.php</file>
|
|
<file>plugin/think-plugs-account/tests/AccountAdminListControllerTest.php</file>
|
|
<file>plugin/think-plugs-payment/tests/PaymentTest.php</file>
|
|
<file>plugin/think-plugs-payment/tests/PaymentRecordControllerTest.php</file>
|
|
<file>plugin/think-plugs-payment/tests/PaymentLedgerControllerTest.php</file>
|
|
<file>plugin/think-plugs-payment/tests/BalanceIntegrationTest.php</file>
|
|
<file>plugin/think-plugs-payment/tests/IntegralIntegrationTest.php</file>
|
|
<file>plugin/think-plugs-payment/tests/PaymentRecordIntegrationTest.php</file>
|
|
<file>plugin/think-plugs-payment/tests/PaymentLedgerIntegrationTest.php</file>
|
|
<file>plugin/think-plugs-system/tests/CommonFunctionsTest.php</file>
|
|
<file>plugin/think-plugs-worker/tests/CommonFunctionsTest.php</file>
|
|
<file>plugin/think-plugs-worker/tests/ProcessServiceTest.php</file>
|
|
<file>plugin/think-plugs-worker/tests/WorkerConfigTest.php</file>
|
|
<file>plugin/think-plugs-worker/tests/QueueServiceTest.php</file>
|
|
<file>plugin/think-plugs-wuma/tests/CodeTest.php</file>
|
|
<file>plugin/think-plugs-wemall/tests/PaymentEventIntegrationTest.php</file>
|
|
</testsuite>
|
|
</testsuites>
|
|
</phpunit>
|