Fix tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-08-11 21:34:28 +02:00
parent eb564e82de
commit a85392615d
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ class SharesPluginTest extends \Test\TestCase {
$this->anything(),
$this->anything(),
$this->equalTo(false),
$this->equalTo(1)
$this->equalTo(-1)
)
->will($this->returnCallback(function($userId, $requestedShareType, $node, $flag, $limit) use ($shareTypes){
if (in_array($requestedShareType, $shareTypes)) {
@ -203,7 +203,7 @@ class SharesPluginTest extends \Test\TestCase {
$this->anything(),
$this->anything(),
$this->equalTo(false),
$this->equalTo(1)
$this->equalTo(-1)
)
->will($this->returnCallback(function($userId, $requestedShareType, $node, $flag, $limit) use ($shareTypes, $dummyShares){
if ($node->getId() === 111 && in_array($requestedShareType, $shareTypes)) {