From 484d35d3ce577675c3849df2ce4a32d81bd58657 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 20 Nov 2018 05:52:18 -0500 Subject: [PATCH] Fix test DB setup --- test/Config/APTestCase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Config/APTestCase.php b/test/Config/APTestCase.php index 8f5f51a..67b8556 100644 --- a/test/Config/APTestCase.php +++ b/test/Config/APTestCase.php @@ -10,15 +10,15 @@ abstract class APTestCase extends TestCase private static $pdo = null; private $conn = null; - private $dbPath = ''; + protected $dbPath = ''; final public function getConnection() { if ( $this->conn === null ) { if ( self::$pdo === null ) { - $this->dbPath = dirname( __FILE__ ) . '../db.sqlite'; + $this->dbPath = dirname( __FILE__ ) . '/../db.sqlite'; self::$pdo = new \PDO( "sqlite:{$this->dbPath}" ); } - $this->conn = $this->createDefaultConnection( self::$pdo, $this->dbPath ); + $this->conn = $this->createDefaultDBConnection( self::$pdo, $this->dbPath ); } return $this->conn; }