Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 26... Línea 26...
26
 * @package    core_courseformat
26
 * @package    core_courseformat
27
 * @copyright  2022 Ferran Recio <ferran@moodle.com>
27
 * @copyright  2022 Ferran Recio <ferran@moodle.com>
28
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @coversDefaultClass \core_courseformat\output\local\state\cm
29
 * @coversDefaultClass \core_courseformat\output\local\state\cm
30
 */
30
 */
31
class cm_test extends \advanced_testcase {
31
final class cm_test extends \advanced_testcase {
Línea 32... Línea 32...
32
 
32
 
33
    /**
33
    /**
34
     * Setup to ensure that fixtures are loaded.
34
     * Setup to ensure that fixtures are loaded.
35
     */
35
     */
Línea 149... Línea 149...
149
    /**
149
    /**
150
     * Data provider for test_state().
150
     * Data provider for test_state().
151
     *
151
     *
152
     * @return array
152
     * @return array
153
     */
153
     */
154
    public function hasrestrictions_state_provider(): array {
154
    public static function hasrestrictions_state_provider(): array {
155
        return [
155
        return [
156
            // Teacher scenarios (topics).
156
            // Teacher scenarios (topics).
157
            'Teacher, Topics, can edit, has availability and is available' => [
157
            'Teacher, Topics, can edit, has availability and is available' => [
158
                'format' => 'topics',
158
                'format' => 'topics',
159
                'rolename' => 'editingteacher',
159
                'rolename' => 'editingteacher',