From a039e104cfe7dc16b6776a2edd13b724436d8a85 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Mon, 27 Feb 2017 11:44:20 -0500 Subject: [PATCH] Allow inspection of the mock internal database This will allow testing of auto-provisioning in the internal database when using external drivers --- tests/lib/User/Database.php | 2 ++ tests/lib/User/DriverExternalMock.php | 2 +- tests/lib/User/DriverInternalMock.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/lib/User/Database.php b/tests/lib/User/Database.php index c86341a4..c241fbcd 100644 --- a/tests/lib/User/Database.php +++ b/tests/lib/User/Database.php @@ -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; } diff --git a/tests/lib/User/DriverExternalMock.php b/tests/lib/User/DriverExternalMock.php index c5428ce1..3c813c2b 100644 --- a/tests/lib/User/DriverExternalMock.php +++ b/tests/lib/User/DriverExternalMock.php @@ -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, diff --git a/tests/lib/User/DriverInternalMock.php b/tests/lib/User/DriverInternalMock.php index df7f8030..c1c65978 100644 --- a/tests/lib/User/DriverInternalMock.php +++ b/tests/lib/User/DriverInternalMock.php @@ -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,