Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 26... Línea 26...
26
namespace core\plugininfo;
26
namespace core\plugininfo;
Línea 27... Línea 27...
27
 
27
 
28
/**
28
/**
29
 * Tests of the repository plugin manager.
29
 * Tests of the repository plugin manager.
30
 */
30
 */
Línea 31... Línea 31...
31
class repository_test extends \advanced_testcase {
31
final class repository_test extends \advanced_testcase {
32
 
32
 
33
    /**
33
    /**
34
     * Test the enable_plugin function to check that it enables and disables repository plugins properly.
34
     * Test the enable_plugin function to check that it enables and disables repository plugins properly.
Línea 54... Línea 54...
54
    /**
54
    /**
55
     * Data provider for the load_disk_version tests for testing with invalid supported fields.
55
     * Data provider for the load_disk_version tests for testing with invalid supported fields.
56
     *
56
     *
57
     * @return array
57
     * @return array
58
     */
58
     */
59
    public function enable_plugin_provider(): array {
59
    public static function enable_plugin_provider(): array {
60
        return [
60
        return [
61
            'Disable an enable and visible repository' => [
61
            'Disable an enable and visible repository' => [
62
                'pluginname' => 'contentbank',
62
                'pluginname' => 'contentbank',
63
                'initialvisibility' => repository::REPOSITORY_ON,
63
                'initialvisibility' => repository::REPOSITORY_ON,
64
                'newstatus' => repository::REPOSITORY_DISABLED,
64
                'newstatus' => repository::REPOSITORY_DISABLED,