Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 58... Línea 58...
58
    }
58
    }
Línea 59... Línea 59...
59
 
59
 
60
    /**
60
    /**
61
     * Test the numerous summaries the helper can produce.
61
     * Test the numerous summaries the helper can produce.
62
     */
62
     */
63
    public function test_get_summaries() {
63
    public function test_get_summaries(): void {
64
        // First the preparation.
64
        // First the preparation.
65
        $config = cache_config_writer::instance();
65
        $config = cache_config_writer::instance();
66
        $this->assertTrue($config->add_store_instance('summariesstore', 'file'));
66
        $this->assertTrue($config->add_store_instance('summariesstore', 'file'));
67
        $config->set_definition_mappings('core/eventinvalidation', array('summariesstore'));
67
        $config->set_definition_mappings('core/eventinvalidation', array('summariesstore'));
Línea 149... Línea 149...
149
    }
149
    }
Línea 150... Línea 150...
150
 
150
 
151
    /**
151
    /**
152
     * Test instantiating an add store form.
152
     * Test instantiating an add store form.
153
     */
153
     */
154
    public function test_get_add_store_form() {
154
    public function test_get_add_store_form(): void {
155
        $form = cache_factory::get_administration_display_helper()->get_add_store_form('file');
155
        $form = cache_factory::get_administration_display_helper()->get_add_store_form('file');
Línea 156... Línea 156...
156
        $this->assertInstanceOf('moodleform', $form);
156
        $this->assertInstanceOf('moodleform', $form);
157
 
157
 
Línea 164... Línea 164...
164
    }
164
    }
Línea 165... Línea 165...
165
 
165
 
166
    /**
166
    /**
167
     * Test instantiating a form to edit a store instance.
167
     * Test instantiating a form to edit a store instance.
168
     */
168
     */
169
    public function test_get_edit_store_form() {
169
    public function test_get_edit_store_form(): void {
170
        // Always instantiate a new core display helper here.
170
        // Always instantiate a new core display helper here.
171
        $administrationhelper = new local\administration_display_helper;
171
        $administrationhelper = new local\administration_display_helper;
172
        $config = cache_config_writer::instance();
172
        $config = cache_config_writer::instance();
Línea 191... Línea 191...
191
    }
191
    }
Línea 192... Línea 192...
192
 
192
 
193
    /**
193
    /**
194
     * Test the hash_key functionality.
194
     * Test the hash_key functionality.
195
     */
195
     */
196
    public function test_hash_key() {
196
    public function test_hash_key(): void {
197
        $this->resetAfterTest();
197
        $this->resetAfterTest();
Línea 198... Línea 198...
198
        set_debugging(DEBUG_ALL);
198
        set_debugging(DEBUG_ALL);
199
 
199