Codeception / Codeception/module-doctrine

"The EntityManager is closed" with Symfony and Doctrine2 modules

Aperta
#19 11 commenti 6 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
4
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

#### What are you trying to achieve?

Use the Symfony and Doctrine2 modules together, to allow "cleanup" by reversing transactions between tests, in functional tests against an SQLite database.

#### What do you get instead?

Many tests are simply failing with

```bash
[Doctrine\ORM\ORMException] The EntityManager is closed.
```
If I do not enable the Doctrine2 module, the tests all succeed. But without it enabled, the transactions are not implemented and reversed between tests.

functional.suite.yml is as follows

```yml
class_name: FunctionalTester
modules:
enabled:
- \Helper\Functional
- Asserts
- Cli
- Filesystem
- REST
- Symfony:
environment: test
var_path: 'var'
- Doctrine2:
depends: Symfony
cleanup: true
```
### Details

* Codeception version: 2.4.5
* PHP Version: 7.2
* Operating System: Linux Mint
* Installation type: Composer

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.