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   mod_bigbluebuttonbn
26
 * @package   mod_bigbluebuttonbn
27
 * @copyright 2010 onwards, Blindside Networks Inc
27
 * @copyright 2010 onwards, Blindside Networks Inc
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
 * @author    Laurent David  (laurent.david [at] call-learning [dt] fr)
29
 * @author    Laurent David  (laurent.david [at] call-learning [dt] fr)
30
 */
30
 */
31
class recording_row_playback_test extends \advanced_testcase {
31
final class recording_row_playback_test extends \advanced_testcase {
32
    use testcase_helper_trait;
32
    use testcase_helper_trait;
Línea 33... Línea 33...
33
 
33
 
34
    /**
34
    /**
35
     * Setup for test
35
     * Setup for test
Línea 93... Línea 93...
93
     * @param object|null $globalsettings
93
     * @param object|null $globalsettings
94
     * @return void
94
     * @return void
95
     * @covers       \recording_row_playback::should_be_included
95
     * @covers       \recording_row_playback::should_be_included
96
     * @dataProvider should_be_included_data_provider
96
     * @dataProvider should_be_included_data_provider
97
     */
97
     */
98
    public function test_should_be_included(string $role, array $canview, object $globalsettings = null): void {
98
    public function test_should_be_included(string $role, array $canview, ?object $globalsettings = null): void {
99
        global $PAGE;
99
        global $PAGE;
100
        $this->resetAfterTest();
100
        $this->resetAfterTest();
101
        ['recordings' => $recordingsdata, 'activity' => $activity] = $this->create_activity_with_recordings(
101
        ['recordings' => $recordingsdata, 'activity' => $activity] = $this->create_activity_with_recordings(
102
            $this->get_course(),
102
            $this->get_course(),
103
            instance::TYPE_ALL,
103
            instance::TYPE_ALL,
Línea 128... Línea 128...
128
    /**
128
    /**
129
     * Data provider for the should be included method
129
     * Data provider for the should be included method
130
     *
130
     *
131
     * @return array
131
     * @return array
132
     */
132
     */
133
    public function should_be_included_data_provider() {
133
    public static function should_be_included_data_provider(): array {
134
        return [
134
        return [
135
            'editingteacher user should see all' => [
135
            'editingteacher user should see all' => [
136
                'role' => 'editingteacher',
136
                'role' => 'editingteacher',
137
                'canview' => ['video', 'presentation', 'podcast', 'settings'],
137
                'canview' => ['video', 'presentation', 'podcast', 'settings'],
138
            ],
138
            ],