Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 34... Línea 34...
34
 * @package    mod_wiki
34
 * @package    mod_wiki
35
 * @category   phpunit
35
 * @category   phpunit
36
 * @copyright  2013 Rajesh Taneja <rajesh@moodle.com>
36
 * @copyright  2013 Rajesh Taneja <rajesh@moodle.com>
37
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 */
38
 */
39
class events_test extends \advanced_testcase {
39
final class events_test extends \advanced_testcase {
40
    private $course;
40
    private $course;
41
    private $wiki;
41
    private $wiki;
42
    private $wikigenerator;
42
    private $wikigenerator;
43
    private $student;
43
    private $student;
44
    private $teacher;
44
    private $teacher;
Línea 46... Línea 46...
46
    /**
46
    /**
47
     * Setup test data.
47
     * Setup test data.
48
     */
48
     */
49
    public function setUp(): void {
49
    public function setUp(): void {
50
        global $DB;
50
        global $DB;
-
 
51
        parent::setUp();
Línea 51... Línea 52...
51
 
52
 
52
        $this->resetAfterTest();
53
        $this->resetAfterTest();
53
        // Create course and wiki.
54
        // Create course and wiki.
54
        $this->course = $this->getDataGenerator()->create_course();
55
        $this->course = $this->getDataGenerator()->create_course();