Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 21... Línea 21...
21
 *
21
 *
22
 * @package   core_analytics
22
 * @package   core_analytics
23
 * @copyright 2016 David Monllaó {@link http://www.davidmonllao.com}
23
 * @copyright 2016 David Monllaó {@link http://www.davidmonllao.com}
24
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 */
25
 */
26
class course_test extends \advanced_testcase {
26
final class course_test extends \advanced_testcase {
Línea 27... Línea 27...
27
 
27
 
28
    /** @var \stdClass Course record. */
28
    /** @var \stdClass Course record. */
Línea 29... Línea 29...
29
    protected $course;
29
    protected $course;
Línea 52... Línea 52...
52
    /** @var int Teacher role ID record. */
52
    /** @var int Teacher role ID record. */
53
    protected $teacherroleid;
53
    protected $teacherroleid;
Línea 54... Línea 54...
54
 
54
 
55
    public function setUp(): void {
55
    public function setUp(): void {
-
 
56
        global $DB;
Línea 56... Línea 57...
56
        global $DB;
57
        parent::setUp();
57
 
58
 
58
        $this->course = $this->getDataGenerator()->create_course(['startdate' => 0]);
59
        $this->course = $this->getDataGenerator()->create_course(['startdate' => 0]);
59
        $this->stu1 = $this->getDataGenerator()->create_user();
60
        $this->stu1 = $this->getDataGenerator()->create_user();