mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Allow inspection of the mock internal database
This will allow testing of auto-provisioning in the internal database when using external drivers
This commit is contained in:
parent
ce3ddee00a
commit
a039e104cf
3 changed files with 4 additions and 2 deletions
|
@ -8,6 +8,8 @@ use PasswordGenerator\Generator as PassGen;
|
|||
|
||||
class Database extends DriverSkeleton {
|
||||
|
||||
public $db = [];
|
||||
|
||||
public function __construct(\JKingWeb\NewsSync\RuntimeData $data) {
|
||||
$this->data = $data;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ use PasswordGenerator\Generator as PassGen;
|
|||
|
||||
class DriverExternalMock extends DriverSkeleton implements Driver {
|
||||
|
||||
protected $db = [];
|
||||
public $db = [];
|
||||
protected $data;
|
||||
protected $functions = [
|
||||
"auth" => Driver::FUNC_EXTERNAL,
|
||||
|
|
|
@ -5,7 +5,7 @@ use JKingWeb\NewsSync\User\Driver;
|
|||
|
||||
class DriverInternalMock extends Database implements Driver {
|
||||
|
||||
protected $db = [];
|
||||
public $db = [];
|
||||
protected $data;
|
||||
protected $functions = [
|
||||
"auth" => Driver::FUNC_INTERNAL,
|
||||
|
|
Loading…
Reference in a new issue