Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 62... Línea 62...
62
    }
62
    }
Línea 63... Línea 63...
63
 
63
 
64
    /**
64
    /**
65
     * Test the method mod_workshop_portfolio_caller::load_data()
65
     * Test the method mod_workshop_portfolio_caller::load_data()
66
     */
66
     */
67
    public function test_load_data() {
67
    public function test_load_data(): void {
Línea 68... Línea 68...
68
        $this->resetAfterTest(true);
68
        $this->resetAfterTest(true);
69
 
69
 
70
        $student1 = $this->getDataGenerator()->create_user();
70
        $student1 = $this->getDataGenerator()->create_user();
Línea 87... Línea 87...
87
    }
87
    }
Línea 88... Línea 88...
88
 
88
 
89
    /**
89
    /**
90
     * Test the method mod_workshop_portfolio_caller::get_return_url()
90
     * Test the method mod_workshop_portfolio_caller::get_return_url()
91
     */
91
     */
92
    public function test_get_return_url() {
92
    public function test_get_return_url(): void {
Línea 93... Línea 93...
93
        $this->resetAfterTest(true);
93
        $this->resetAfterTest(true);
94
 
94
 
95
        $student1 = $this->getDataGenerator()->create_user();
95
        $student1 = $this->getDataGenerator()->create_user();
Línea 107... Línea 107...
107
    }
107
    }
Línea 108... Línea 108...
108
 
108
 
109
    /**
109
    /**
110
     * Test the method mod_workshop_portfolio_caller::get_navigation()
110
     * Test the method mod_workshop_portfolio_caller::get_navigation()
111
     */
111
     */
112
    public function test_get_navigation() {
112
    public function test_get_navigation(): void {
Línea 113... Línea 113...
113
        $this->resetAfterTest(true);
113
        $this->resetAfterTest(true);
114
 
114
 
115
        $student1 = $this->getDataGenerator()->create_user();
115
        $student1 = $this->getDataGenerator()->create_user();
Línea 125... Línea 125...
125
    }
125
    }
Línea 126... Línea 126...
126
 
126
 
127
    /**
127
    /**
128
     * Test the method mod_workshop_portfolio_caller::check_permissions()
128
     * Test the method mod_workshop_portfolio_caller::check_permissions()
129
     */
129
     */
130
    public function test_check_permissions_exportownsubmissionassessment() {
130
    public function test_check_permissions_exportownsubmissionassessment(): void {
131
        global $DB;
131
        global $DB;
Línea 132... Línea 132...
132
        $this->resetAfterTest(true);
132
        $this->resetAfterTest(true);
133
 
133
 
Línea 152... Línea 152...
152
    }
152
    }
Línea 153... Línea 153...
153
 
153
 
154
    /**
154
    /**
155
     * Test the method mod_workshop_portfolio_caller::get_sha1()
155
     * Test the method mod_workshop_portfolio_caller::get_sha1()
156
     */
156
     */
157
    public function test_get_sha1() {
157
    public function test_get_sha1(): void {
Línea 158... Línea 158...
158
        $this->resetAfterTest(true);
158
        $this->resetAfterTest(true);
159
 
159
 
160
        $student1 = $this->getDataGenerator()->create_user();
160
        $student1 = $this->getDataGenerator()->create_user();
Línea 174... Línea 174...
174
 
174
 
175
    /**
175
    /**
176
     * Test function display_name()
176
     * Test function display_name()
177
     * Assert that this function can return the name of the module ('Workshop').
177
     * Assert that this function can return the name of the module ('Workshop').
178
     */
178
     */
179
    public function test_display_name() {
179
    public function test_display_name(): void {
Línea 180... Línea 180...
180
        $this->resetAfterTest(true);
180
        $this->resetAfterTest(true);
181
 
181
 
182
        $name = \mod_workshop_portfolio_caller::display_name();
182
        $name = \mod_workshop_portfolio_caller::display_name();