Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 33... Línea 33...
33
 *
33
 *
34
 * @copyright   2018 Jake Dallimore <jrhdallimore@gmail.com>
34
 * @copyright   2018 Jake Dallimore <jrhdallimore@gmail.com>
35
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
35
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 * @coversDefaultClass \core_privacy\manager
36
 * @coversDefaultClass \core_privacy\manager
37
 */
37
 */
38
class manager_test extends \advanced_testcase {
38
final class manager_test extends \advanced_testcase {
39
    /**
39
    /**
40
     * Test tearDown.
40
     * Test tearDown.
41
     */
41
     */
42
    public function tearDown(): void {
42
    public function tearDown(): void {
43
        \core_privacy\local\request\writer::reset();
43
        \core_privacy\local\request\writer::reset();
-
 
44
        parent::tearDown();
44
    }
45
    }
Línea 45... Línea 46...
45
 
46
 
46
    /**
47
    /**
47
     * Helper to spoof the results of the internal function get_components_list, allowing mock components to be tested.
48
     * Helper to spoof the results of the internal function get_components_list, allowing mock components to be tested.
Línea 136... Línea 137...
136
    /**
137
    /**
137
     * Provider for component_is_compliant tests.
138
     * Provider for component_is_compliant tests.
138
     *
139
     *
139
     * @return  array
140
     * @return  array
140
     */
141
     */
141
    public function component_is_compliant_provider() {
142
    public static function component_is_compliant_provider(): array {
142
        return [
143
        return [
143
            'An empty subsystem' => [
144
            'An empty subsystem' => [
144
                'core_countries',
145
                'core_countries',
145
                true,
146
                true,
146
            ],
147
            ],
Línea 292... Línea 293...
292
    /**
293
    /**
293
     * Test cases for the is_empty_subsystem function.
294
     * Test cases for the is_empty_subsystem function.
294
     *
295
     *
295
     * @return array
296
     * @return array
296
     */
297
     */
297
    public function is_empty_subsystem_provider() {
298
    public static function is_empty_subsystem_provider(): array {
298
        return [
299
        return [
299
            'A subsystem which has no directory' => [
300
            'A subsystem which has no directory' => [
300
                'core_langconfig',
301
                'core_langconfig',
301
                true,
302
                true,
302
            ],
303
            ],