mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
feat(test): 框架测试基建基类TestCaseBase+app层入口+冒烟测试
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
16
app/common/test/TestCase.php
Normal file
16
app/common/test/TestCase.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* app 层测试基建入口(空壳).
|
||||
*
|
||||
* 架构约束(Base/App 铁律):每新增一个 Base 类,必须同时在 app/ 提供入口类。
|
||||
* 本类是 extend/base/common/test/TestCaseBase 的 app 层入口,空壳继承。
|
||||
*
|
||||
* 业务测试用例应继承本类(而非直接继承 TestCaseBase),业务 fixture 工厂
|
||||
* (创建业务实体、业务表探针重写等)下沉到本类或其子类实现。
|
||||
*/
|
||||
|
||||
namespace app\common\test;
|
||||
|
||||
class TestCase extends \base\common\test\TestCaseBase
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user