Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
eb564e82de
commit
a85392615d
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue