Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 42... Línea 42...
42
     * @param array $shareddrives The array containing the existing shared drives
42
     * @param array $shareddrives The array containing the existing shared drives
43
     * @param array $drivecontents The array containing the fetched google drive contents
43
     * @param array $drivecontents The array containing the fetched google drive contents
44
     * @param array $expected The expected array which contains the generated repository content nodes
44
     * @param array $expected The expected array which contains the generated repository content nodes
45
     */
45
     */
46
    public function test_get_content_nodes(string $query, string $path, bool $sortcontent, array $filterextensions,
46
    public function test_get_content_nodes(string $query, string $path, bool $sortcontent, array $filterextensions,
47
            array $shareddrives, array $drivecontents, array $expected) {
47
            array $shareddrives, array $drivecontents, array $expected): void {
Línea 48... Línea 48...
48
 
48
 
49
        // Mock the service object.
49
        // Mock the service object.
Línea 50... Línea 50...
50
        $servicemock = $this->createMock(\repository_googledocs\rest::class);
50
        $servicemock = $this->createMock(\repository_googledocs\rest::class);
Línea 199... Línea 199...
199
     *
199
     *
200
     * @dataProvider get_navigation_provider
200
     * @dataProvider get_navigation_provider
201
     * @param string $nodepath The node path string
201
     * @param string $nodepath The node path string
202
     * @param array $expected The expected array containing the repository navigation nodes
202
     * @param array $expected The expected array containing the repository navigation nodes
203
     */
203
     */
204
    public function test_get_navigation(string $nodepath, array $expected) {
204
    public function test_get_navigation(string $nodepath, array $expected): void {
205
        // Mock the service object.
205
        // Mock the service object.
206
        $servicemock = $this->createMock(\repository_googledocs\rest::class);
206
        $servicemock = $this->createMock(\repository_googledocs\rest::class);
Línea 207... Línea 207...
207
 
207
 
208
        $drivebrowser = new googledocs_drive_content($servicemock, $nodepath);
208
        $drivebrowser = new googledocs_drive_content($servicemock, $nodepath);