Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 41... Línea 41...
41
 * @category   test
41
 * @category   test
42
 * @copyright  2015 Juan Leyva <juan@moodle.com>
42
 * @copyright  2015 Juan Leyva <juan@moodle.com>
43
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
43
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
44
 * @since      Moodle 3.0
44
 * @since      Moodle 3.0
45
 */
45
 */
46
class lib_test extends \advanced_testcase {
46
final class lib_test extends \advanced_testcase {
Línea 47... Línea 47...
47
 
47
 
48
    /** @var \stdClass course record. */
48
    /** @var \stdClass course record. */
Línea 49... Línea 49...
49
    protected \stdClass $course;
49
    protected \stdClass $course;
Línea 72... Línea 72...
72
    /**
72
    /**
73
     * Set up for every test
73
     * Set up for every test
74
     */
74
     */
75
    public function setUp(): void {
75
    public function setUp(): void {
76
        global $DB;
76
        global $DB;
-
 
77
        parent::setUp();
77
        $this->resetAfterTest();
78
        $this->resetAfterTest();
78
        $this->setAdminUser();
79
        $this->setAdminUser();
Línea 79... Línea 80...
79
 
80
 
80
        // Setup test data.
81
        // Setup test data.