1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +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:
J. King 2017-02-27 11:44:20 -05:00
parent ce3ddee00a
commit a039e104cf
3 changed files with 4 additions and 2 deletions

View file

@ -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;
}

View file

@ -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,

View file

@ -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,