Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 61... Línea 61...
61
    }
61
    }
Línea 62... Línea 62...
62
 
62
 
63
    /**
63
    /**
64
     * Test get listing
64
     * Test get listing
65
     */
65
     */
66
    public function test_get_listing_with_duplicate_file() {
66
    public function test_get_listing_with_duplicate_file(): void {
67
        global $itemid;
67
        global $itemid;
Línea 68... Línea 68...
68
        $this->resetAfterTest(true);
68
        $this->resetAfterTest(true);
69
 
69
 
Línea 91... Línea 91...
91
    }
91
    }
Línea 92... Línea 92...
92
 
92
 
93
    /**
93
    /**
94
     * Test get listing reference file
94
     * Test get listing reference file
95
     */
95
     */
96
    public function test_get_listing_with_reference_file() {
96
    public function test_get_listing_with_reference_file(): void {
97
        $this->resetAfterTest(true);
97
        $this->resetAfterTest(true);
98
        // Create test file 1.
98
        // Create test file 1.
99
        $file1 = $this->create_test_file('TestFile1', 'private');
99
        $file1 = $this->create_test_file('TestFile1', 'private');
100
        $filelist = $this->repo->get_listing()['list'];
100
        $filelist = $this->repo->get_listing()['list'];
Línea 112... Línea 112...
112
    }
112
    }
Línea 113... Línea 113...
113
 
113
 
114
    /**
114
    /**
115
     * Test number limit
115
     * Test number limit
116
     */
116
     */
117
    public function test_get_listing_number_limit() {
117
    public function test_get_listing_number_limit(): void {
118
        $this->resetAfterTest(true);
118
        $this->resetAfterTest(true);
119
        $this->create_multiple_test_files('private', 75);
119
        $this->create_multiple_test_files('private', 75);
120
        $filelist = $this->repo->get_listing()['list'];
120
        $filelist = $this->repo->get_listing()['list'];
Línea 129... Línea 129...
129
    }
129
    }
Línea 130... Línea 130...
130
 
130
 
131
    /**
131
    /**
132
     * Test time limit
132
     * Test time limit
133
     */
133
     */
134
    public function test_get_listing_time_limit() {
134
    public function test_get_listing_time_limit(): void {
135
        $this->resetAfterTest(true);
135
        $this->resetAfterTest(true);
136
        $this->create_multiple_test_files('private', 25);
136
        $this->create_multiple_test_files('private', 25);
137
        $file1 = $this->create_test_file('TestFileTimeLimit', 'private');
137
        $file1 = $this->create_test_file('TestFileTimeLimit', 'private');
138
        // Set time modified back to a year ago.
138
        // Set time modified back to a year ago.