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\section
29
 * @coversDefaultClass \core_courseformat\output\local\state\section
30
 */
30
 */
31
class section_test extends \advanced_testcase {
31
final class section_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 141... Línea 141...
141
    /**
141
    /**
142
     * Data provider for test_state().
142
     * Data provider for test_state().
143
     *
143
     *
144
     * @return array
144
     * @return array
145
     */
145
     */
146
    public function hasrestrictions_state_provider(): array {
146
    public static function hasrestrictions_state_provider(): array {
147
        return [
147
        return [
148
            // Teacher scenarios (topics).
148
            // Teacher scenarios (topics).
149
            'Teacher, Topics, can edit, has availability and is available' => [
149
            'Teacher, Topics, can edit, has availability and is available' => [
150
                'format' => 'topics',
150
                'format' => 'topics',
151
                'rolename' => 'editingteacher',
151
                'rolename' => 'editingteacher',