summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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');