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
 * @package    mod_forum
26
 * @package    mod_forum
27
 * @copyright  2021 Sara Arjona <sara@moodle.com>
27
 * @copyright  2021 Sara Arjona <sara@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 \mod_forum\h5p\canedit
29
 * @coversDefaultClass \mod_forum\h5p\canedit
30
 */
30
 */
31
class canedit_test extends \advanced_testcase {
31
final class canedit_test extends \advanced_testcase {
Línea 32... Línea 32...
32
 
32
 
33
    /**
33
    /**
34
     * Test the behaviour of can_edit_content().
34
     * Test the behaviour of can_edit_content().
35
     *
35
     *
Línea 121... Línea 121...
121
    /**
121
    /**
122
     * Data provider for test_can_edit_content().
122
     * Data provider for test_can_edit_content().
123
     *
123
     *
124
     * @return array
124
     * @return array
125
     */
125
     */
126
    public function can_edit_content_provider(): array {
126
    public static function can_edit_content_provider(): array {
127
        return [
127
        return [
128
            // Component = mod_forum.
128
            // Component = mod_forum.
129
            'mod_forum: Admin user is author' => [
129
            'mod_forum: Admin user is author' => [
130
                'currentuser' => 'admin',
130
                'currentuser' => 'admin',
131
                'fileauthor' => 'admin',
131
                'fileauthor' => 'admin',