summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-05 16:05:16 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-05 16:05:16 +0100
commit17e16cf46fe9cf605aa0c761e71251ecc0c48724 (patch)
tree9d4f03252a0fe9c92ba88c63bdb5b98cf731c559 /tests
parent867768d172cc6ddad8605507e048e0c058e36ba6 (diff)
fix warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/bootstrap.php4
-rw-r--r--tests/integration/db/ItemMapperTest.php2
2 files changed, 3 insertions, 3 deletions
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');