scottix
(Scottix)
May 16, 2017, 2:57pm
1
After fighting our automated tests. We found Codeception 2.2.11 has broken fixture loading 2.2.10 is working fine. Maybe someone can follow up on this with codeception on this issue.
samdark
(Alexander Makarov)
May 17, 2017, 8:49am
2
Would you please check code from master branch?
scottix
(Scottix)
May 17, 2017, 9:44pm
3
Installing codeception/codeception (dev-master 3161ec2): Cloning 3161ec2015 from cache
Master is not working.
I’ll give example error.
scottix
(Scottix)
May 24, 2017, 11:23pm
4
private function loadFixtures($test)
{
if (empty($this->loadedFixtures)
&& method_exists($test, self::TEST_FIXTURES_METHOD)
) {
$this->haveFixtures(call_user_func([$test, self::TEST_FIXTURES_METHOD]));
}
}
public function _after(TestInterface $test)
{
$_SESSION = [];
$_FILES = [];
$_GET = [];
$_POST = [];
$_COOKIE = [];
$_REQUEST = [];
if ($this->config['transaction'] && $this->transaction) {
$this->transaction->rollBack();
$this->debugSection('Database', 'Transaction cancelled; all changes reverted.');
There is not a valid option for no transactions and do cleanup.
I think there should be two variables for configuration.
$this->config[‘transaction’]
$this->config[‘cleanup’]
specifies if you want to wrap the tests in transactions.
specifies if you want to do cleanup or not do cleanup.