Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2021-05-16 20:39:40 +0300
committersualko <klaus@jsxc.org>2021-05-16 20:39:40 +0300
commit018c3295944c5c36c261e1b42bb8138551f950ba (patch)
treefe1ee23b149fc51be38d569b2d8cd9d741655524
parenta01b862310e468990ae857499c66ecc16ee8e010 (diff)
test: fix compatibility between nc versions
-rw-r--r--tests/unit/RosterPushTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/RosterPushTest.php b/tests/unit/RosterPushTest.php
index 1b9c8fe..e0b97bf 100644
--- a/tests/unit/RosterPushTest.php
+++ b/tests/unit/RosterPushTest.php
@@ -97,7 +97,7 @@ class RosterPushTest extends TestCase
->method('createOrUpdateRosterItem')
->with($user3);
- $resultStatement = $this->getMockBuilder('OCP\DB\IResult')->getMock();
+ $resultStatement = interface_exists('OCP\DB\IResult') ? $this->getMockBuilder('OCP\DB\IResult')->getMock() : $this->getMockBuilder('Doctrine\DBAL\Driver\ResultStatement')->getMock();
$resultStatement->expects($this->at(0))
->method('fetchAll')