Codeception / Codeception/module-doctrine

Doctrine2 module and option cleanup does not work

未关闭
#25 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
4
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

I have a functional cest test.
In __before() I create some entities and I assume they will be deleted during __after(), but it does not happen.
I dig a little and found that in `Codeception\Module\Doctrine2` line 174 there is a PDO exception says "There is no active transaction". And when my second test is ran I entities from first test are still exist

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 Codeception\Module\Doctrine2 第 174 行开始,跟踪功能性 Cest 测试如何在 __before() 中创建实体,并在 __after() 中预期进行清理。使用所描述的第二个测试场景重现活动事务异常;当第一个测试中的实体被移除且不出现 PDO 异常时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
database, testing
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。