From d5473377ee29ccfe72f7db4c36930a0b5b999e8f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 5 Nov 2014 16:53:06 +0100 Subject: dont set db as private member --- tests/integration/bootstrap.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/integration/bootstrap.php b/tests/integration/bootstrap.php index de6ad1cbe..3c3193d3a 100644 --- a/tests/integration/bootstrap.php +++ b/tests/integration/bootstrap.php @@ -12,7 +12,6 @@ class NewsIntegrationTest extends \PHPUnit_Framework_TestCase { protected $userId = 'test'; protected $userPassword = 'test'; - protected $db; protected function setupNewsDatabase($user='test') { $sql = [ @@ -22,8 +21,9 @@ class NewsIntegrationTest extends \PHPUnit_Framework_TestCase { 'DELETE FROM *PREFIX*news_folders WHERE user_id = ?' ]; + $db = \OC::$server->getDb(); foreach ($sql as $query) { - $this->db->prepareQuery($query)->execute([$user]); + $db->prepareQuery($query)->execute([$user]); } } @@ -43,7 +43,6 @@ class NewsIntegrationTest extends \PHPUnit_Framework_TestCase { protected function setUpOwnCloud($user='test', $password='test') { - $this->db = \OC::$server->getDb(); $this->setupUser($user, $password); $this->setupNewsDatabase($user); } -- cgit v1.2.3