mirror of
https://github.com/e107inc/e107.git
synced 2025-10-17 07:46:29 +02:00
Refactored by extracting code common to all suites to \Helper\Base New \Helper\DelayedDb helper to delay initialization so that a new DSN, username, and password can be loaded in dynamically for automatic database provisioning. Should still be compatible with manual database information in codeception.yml
21 lines
344 B
PHP
21 lines
344 B
PHP
<?php
|
|
namespace Helper;
|
|
|
|
// here you can define custom actions
|
|
// all public methods declared in helper class will be available in $I
|
|
|
|
class DelayedDb extends \Codeception\Module\Db
|
|
{
|
|
protected $requiredFields = [];
|
|
|
|
public function _initialize()
|
|
{
|
|
// Noop
|
|
}
|
|
|
|
public function _delayedInitialize()
|
|
{
|
|
return parent::_initialize();
|
|
}
|
|
}
|