Closed leealex closed 4 years ago
Try setting transaction: false
in module parameters to keep the previous default behaviour:
modules:
enabled:
- Yii2:
transaction: false
Thanks it helped, though it's not obvious behaviour.
Hey! There was a mistake in module parameters, when transaction property was false by default. Anyway you have to get in use of transactioned test, because you want to have independent one to have no side effects on your testing enviroment.
Hey! There was a mistake in module parameters, when transaction property was false by default. Anyway you have to get in use of transactioned test, because you want to have independent one to have no side effects on your testing enviroment.
Thank you :)
Hey! There was a mistake in module parameters, when transaction property was false by default. Anyway you have to get in use of transactioned test, because you want to have independent one to have no side effects on your testing enviroment.
Thanks, I had cleanup: false in my Yii2 module configuration (using Yii1 + Yii2 together was causing transaction errors). After upgrading I started to get database locks which would never release during fixture loading. This issue was resolved by adding transaction: false to Yii2 module configuration.
Thanks @SaloEater and @Naktibalda
My tests create some records in DB using AR between tests, but after upgrading to 1.1.1 records being removed after each test. All tests are passing on v. 1.1.0