Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 72... Línea 72...
72
     * @param   string   $expectedname   The name result
72
     * @param   string   $expectedname   The name result
73
     * @param   bool   $expectedresult   The bolean result expected when renaming
73
     * @param   bool   $expectedresult   The bolean result expected when renaming
74
     *
74
     *
75
     * @covers ::execute
75
     * @covers ::execute
76
     */
76
     */
77
    public function test_rename_content_with_permission(string $newname, string $expectedname, bool $expectedresult) {
77
    public function test_rename_content_with_permission(string $newname, string $expectedname, bool $expectedresult): void {
78
        global $DB;
78
        global $DB;
79
        $this->resetAfterTest();
79
        $this->resetAfterTest();
Línea 80... Línea 80...
80
 
80
 
81
        // Create users.
81
        // Create users.
Línea 109... Línea 109...
109
    /**
109
    /**
110
     * Test the behaviour of rename_content() for users with permission.
110
     * Test the behaviour of rename_content() for users with permission.
111
     *
111
     *
112
     * @covers ::execute
112
     * @covers ::execute
113
     */
113
     */
114
    public function test_rename_content_without_permission() {
114
    public function test_rename_content_without_permission(): void {
115
        global $DB;
115
        global $DB;
116
        $this->resetAfterTest();
116
        $this->resetAfterTest();
Línea 117... Línea 117...
117
 
117
 
118
        // Create users.
118
        // Create users.