Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 38... Línea 38...
38
 
38
 
39
    /**
39
    /**
40
     * Tests the state of the registration system when first installed.
40
     * Tests the state of the registration system when first installed.
41
     * @throws \dml_exception
41
     * @throws \dml_exception
42
     */
42
     */
43
    public function test_initial_state() {
43
    public function test_initial_state(): void {
44
        $this->resetAfterTest();
44
        $this->resetAfterTest();
Línea 45... Línea 45...
45
        $regobj = new mock_registration();
45
        $regobj = new mock_registration();
46
 
46
 
Línea 54... Línea 54...
54
 
54
 
55
    /**
55
    /**
56
     * Test the various states for setting registration keys.
56
     * Test the various states for setting registration keys.
57
     * @throws \dml_exception
57
     * @throws \dml_exception
58
     */
58
     */
59
    public function test_set_keys_for_registration() {
59
    public function test_set_keys_for_registration(): void {
60
        $this->resetAfterTest();
60
        $this->resetAfterTest();
Línea 61... Línea 61...
61
        $regobj = new mock_registration();
61
        $regobj = new mock_registration();
62
 
62
 
Línea 77... Línea 77...
77
 
77
 
78
    /**
78
    /**
79
     * Test the validation system through its several states.
79
     * Test the validation system through its several states.
80
     * @throws \dml_exception
80
     * @throws \dml_exception
81
     */
81
     */
82
    public function test_validation() {
82
    public function test_validation(): void {
83
        $this->resetAfterTest();
83
        $this->resetAfterTest();
Línea 84... Línea 84...
84
        $regobj = new mock_registration();
84
        $regobj = new mock_registration();
85
 
85
 
Línea 110... Línea 110...
110
 
110
 
111
    /**
111
    /**
112
     * Tests the system after validation grace periods expire.
112
     * Tests the system after validation grace periods expire.
113
     * @throws \dml_exception
113
     * @throws \dml_exception
114
     */
114
     */
115
    public function test_validation_time_expiry() {
115
    public function test_validation_time_expiry(): void {
116
        $this->resetAfterTest();
116
        $this->resetAfterTest();
Línea 117... Línea 117...
117
        $regobj = new mock_registration();
117
        $regobj = new mock_registration();
118
 
118
 
Línea 147... Línea 147...
147
 
147
 
148
    /**
148
    /**
149
     * Tests the system after summary data time periods expire.
149
     * Tests the system after summary data time periods expire.
150
     * @throws \dml_exception
150
     * @throws \dml_exception
151
     */
151
     */
152
    public function test_summary_time_expiry() {
152
    public function test_summary_time_expiry(): void {
153
        $this->resetAfterTest();
153
        $this->resetAfterTest();
Línea 154... Línea 154...
154
        $regobj = new mock_registration();
154
        $regobj = new mock_registration();
155
 
155