Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 55... Línea 55...
55
     * Test is_valid_instance method.
55
     * Test is_valid_instance method.
56
     *
56
     *
57
     * @covers ::is_valid_instance
57
     * @covers ::is_valid_instance
58
     * @return void
58
     * @return void
59
     */
59
     */
60
    public function test_is_valid_instance() {
60
    public function test_is_valid_instance(): void {
61
        global $CFG;
61
        global $CFG;
62
        $this->setAdminUser();
62
        $this->setAdminUser();
Línea 63... Línea 63...
63
 
63
 
64
        // Create dummy issuer.
64
        // Create dummy issuer.
Línea 95... Línea 95...
95
     * Test can_user_share method.
95
     * Test can_user_share method.
96
     *
96
     *
97
     * @covers ::can_user_share
97
     * @covers ::can_user_share
98
     * @return void
98
     * @return void
99
     */
99
     */
100
    public function test_can_user_share() {
100
    public function test_can_user_share(): void {
101
        global $DB;
101
        global $DB;
Línea 102... Línea 102...
102
 
102
 
103
        // Generate data.
103
        // Generate data.
104
        $student1 = $this->generator->create_user();
104
        $student1 = $this->generator->create_user();
Línea 155... Línea 155...
155
     * Test does_user_have_capability_in_any_course method.
155
     * Test does_user_have_capability_in_any_course method.
156
     *
156
     *
157
     * @covers ::does_user_have_capability_in_any_course
157
     * @covers ::does_user_have_capability_in_any_course
158
     * @return void
158
     * @return void
159
     */
159
     */
160
    public function test_does_user_have_capability_in_any_course() {
160
    public function test_does_user_have_capability_in_any_course(): void {
161
        global $DB;
161
        global $DB;
Línea 162... Línea 162...
162
 
162
 
163
        // Prepare data.
163
        // Prepare data.
164
        $teacher1 = $this->generator->create_user();
164
        $teacher1 = $this->generator->create_user();