1 |
efrain |
1 |
<?php
|
|
|
2 |
// This file is part of Moodle - http://moodle.org/
|
|
|
3 |
//
|
|
|
4 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
// it under the terms of the GNU General Public License as published by
|
|
|
6 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
// (at your option) any later version.
|
|
|
8 |
//
|
|
|
9 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
// GNU General Public License for more details.
|
|
|
13 |
//
|
|
|
14 |
// You should have received a copy of the GNU General Public License
|
|
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* Test support class for testing access_controlled_link_manager.
|
|
|
19 |
*
|
|
|
20 |
* @package repository_nextcloud
|
|
|
21 |
* @copyright 2018 Nina Herrmann (Learnweb, University of Münster)
|
|
|
22 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
23 |
*/
|
|
|
24 |
defined('MOODLE_INTERNAL') || die();
|
|
|
25 |
|
|
|
26 |
use core\oauth2\client;
|
|
|
27 |
use repository_nextcloud\access_controlled_link_manager;
|
|
|
28 |
use repository_nextcloud\ocs_client;
|
|
|
29 |
|
|
|
30 |
/**
|
|
|
31 |
* Test support class for testing access_controlled_link_manager.
|
|
|
32 |
*
|
|
|
33 |
* @package repository_nextcloud
|
|
|
34 |
* @copyright 2018 Nina Herrmann (Learnweb, University of Münster)
|
|
|
35 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
36 |
*/
|
|
|
37 |
class testable_access_controlled_link_manager extends access_controlled_link_manager {
|
|
|
38 |
|
|
|
39 |
/**
|
|
|
40 |
* Access_controlled_link_manager constructor.
|
|
|
41 |
* @param ocs_client $ocsclient
|
|
|
42 |
* @param client $systemoauthclient
|
|
|
43 |
* @param ocs_client $systemocsclient
|
|
|
44 |
* @param \core\oauth2\issuer $issuer
|
|
|
45 |
* @param string $repositoryname
|
|
|
46 |
* @param \webdav_client $systemdav
|
|
|
47 |
*/
|
|
|
48 |
public function __construct($ocsclient, $systemoauthclient, $systemocsclient, \core\oauth2\issuer $issuer, $repositoryname,
|
|
|
49 |
$systemdav) {
|
|
|
50 |
$this->ocsclient = $ocsclient;
|
|
|
51 |
$this->systemoauthclient = $systemoauthclient;
|
|
|
52 |
$this->systemocsclient = $systemocsclient;
|
|
|
53 |
$this->repositoryname = $repositoryname;
|
|
|
54 |
$this->issuer = $issuer;
|
|
|
55 |
$this->systemwebdavclient = $systemdav;
|
|
|
56 |
}
|
|
|
57 |
}
|