Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 32... Línea 32...
32
 *
32
 *
33
 * @package    report_outline
33
 * @package    report_outline
34
 * @copyright  2014 onwards Ankit agarwal <ankit.agrr@gmail.com>
34
 * @copyright  2014 onwards Ankit agarwal <ankit.agrr@gmail.com>
35
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
35
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later.
36
 */
36
 */
37
class lib_test extends \advanced_testcase {
37
final class lib_test extends \advanced_testcase {
Línea 38... Línea 38...
38
 
38
 
39
    /**
39
    /**
40
     * @var stdClass The user.
40
     * @var stdClass The user.
41
     */
41
     */
Línea 60... Línea 60...
60
     * @var int Dummy role for testing.
60
     * @var int Dummy role for testing.
61
     */
61
     */
62
    private $roleid;
62
    private $roleid;
Línea 63... Línea 63...
63
 
63
 
-
 
64
    public function setUp(): void {
64
    public function setUp(): void {
65
        parent::setUp();
65
        $this->user = $this->getDataGenerator()->create_user();
66
        $this->user = $this->getDataGenerator()->create_user();
66
        $this->course = $this->getDataGenerator()->create_course();
67
        $this->course = $this->getDataGenerator()->create_course();
67
        $this->tree = new \core_user\output\myprofile\tree();
68
        $this->tree = new \core_user\output\myprofile\tree();
68
        $this->coursecontext = \context_course::instance($this->course->id);
69
        $this->coursecontext = \context_course::instance($this->course->id);