From 17e16cf46fe9cf605aa0c761e71251ecc0c48724 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 5 Nov 2014 16:05:16 +0100 Subject: fix warnings --- tests/integration/bootstrap.php | 4 ++-- tests/integration/db/ItemMapperTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/integration/bootstrap.php b/tests/integration/bootstrap.php index a1bcaaa19..effe2fe9d 100644 --- a/tests/integration/bootstrap.php +++ b/tests/integration/bootstrap.php @@ -19,7 +19,7 @@ class NewsIntegrationTest extends \PHPUnit_Framework_TestCase { ]; foreach ($sql as $query) { - $this->db->prepareQuery($query)->execute($user); + $this->db->prepareQuery($query)->execute([$user]); } } @@ -38,7 +38,7 @@ class NewsIntegrationTest extends \PHPUnit_Framework_TestCase { } - protected function setUp($user='test', $password='test') { + protected function setUpOwnCloud($user='test', $password='test') { $this->db = \OC::$server->getDb(); $this->setupUser($user, $password); $this->setupNewsDatabase($user); diff --git a/tests/integration/db/ItemMapperTest.php b/tests/integration/db/ItemMapperTest.php index 5c0ff1df2..fa9d438f8 100644 --- a/tests/integration/db/ItemMapperTest.php +++ b/tests/integration/db/ItemMapperTest.php @@ -13,7 +13,7 @@ class ItemMapperTest extends NewsIntegrationTest { private $itemMapper; protected function setUp() { - parent::setUp(); + parent::setUpOwnCloud(); $app = new Application(); $this->container = $app->getContainer(); $this->itemMapper = $this->container->query('ItemMapper'); -- cgit v1.2.3