You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A helper runs code to modify the database in _beforeSuite in order to add control rows before any tests are run.
What do you get instead?
The code crashes upon trying to run SQL as the connection has been terminated. This was new behaviour added by Codeception/Codeception@5e2c999
Easiest fix would be to create a public method on Db to ensure that the connection is open before running code if config has reconnect. The quickest route would just be to make connect() public.
Details
Codeception version: 2.2.11
PHP Version: 7.0.19
Operating System: Ubuntu 16.04 LTS
Installation type: Composer
List of installed packages (composer show) not relevant
What are you trying to achieve?
A helper runs code to modify the database in
_beforeSuite
in order to add control rows before any tests are run.What do you get instead?
The code crashes upon trying to run SQL as the connection has been terminated. This was new behaviour added by Codeception/Codeception@5e2c999
Easiest fix would be to create a public method on
Db
to ensure that the connection is open before running code if config has reconnect. The quickest route would just be to makeconnect()
public.Details
composer show
) not relevantThe text was updated successfully, but these errors were encountered: