Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 60... Línea 60...
60
    /**
60
    /**
61
     * Availability.
61
     * Availability.
62
     *
62
     *
63
     * @return void
63
     * @return void
64
     */
64
     */
65
    public function test_search_enabled() {
65
    public function test_search_enabled(): void {
Línea 66... Línea 66...
66
 
66
 
67
        $searcharea = \core_search\manager::get_search_area($this->forumpostareaid);
67
        $searcharea = \core_search\manager::get_search_area($this->forumpostareaid);
Línea 68... Línea 68...
68
        list($componentname, $varname) = $searcharea->get_config_var_name();
68
        list($componentname, $varname) = $searcharea->get_config_var_name();
Línea 80... Línea 80...
80
    /**
80
    /**
81
     * Indexing mod forum contents.
81
     * Indexing mod forum contents.
82
     *
82
     *
83
     * @return void
83
     * @return void
84
     */
84
     */
85
    public function test_posts_indexing() {
85
    public function test_posts_indexing(): void {
86
        global $DB;
86
        global $DB;
Línea 87... Línea 87...
87
 
87
 
88
        // Returns the instance as long as the area is supported.
88
        // Returns the instance as long as the area is supported.
89
        $searcharea = \core_search\manager::get_search_area($this->forumpostareaid);
89
        $searcharea = \core_search\manager::get_search_area($this->forumpostareaid);
Línea 171... Línea 171...
171
    /**
171
    /**
172
     * Document contents.
172
     * Document contents.
173
     *
173
     *
174
     * @return void
174
     * @return void
175
     */
175
     */
176
    public function test_posts_document() {
176
    public function test_posts_document(): void {
177
        global $DB;
177
        global $DB;
Línea 178... Línea 178...
178
 
178
 
179
        // Returns the instance as long as the area is supported.
179
        // Returns the instance as long as the area is supported.
180
        $searcharea = \core_search\manager::get_search_area($this->forumpostareaid);
180
        $searcharea = \core_search\manager::get_search_area($this->forumpostareaid);
Línea 227... Línea 227...
227
    }
227
    }
Línea 228... Línea 228...
228
 
228
 
229
    /**
229
    /**
230
     * Group support for forum posts.
230
     * Group support for forum posts.
231
     */
231
     */
232
    public function test_posts_group_support() {
232
    public function test_posts_group_support(): void {
233
        // Get the search area and test generators.
233
        // Get the search area and test generators.
234
        $searcharea = \core_search\manager::get_search_area($this->forumpostareaid);
234
        $searcharea = \core_search\manager::get_search_area($this->forumpostareaid);
235
        $generator = $this->getDataGenerator();
235
        $generator = $this->getDataGenerator();
Línea 295... Línea 295...
295
    /**
295
    /**
296
     * Document accesses.
296
     * Document accesses.
297
     *
297
     *
298
     * @return void
298
     * @return void
299
     */
299
     */
300
    public function test_posts_access() {
300
    public function test_posts_access(): void {
301
        global $DB;
301
        global $DB;
Línea 302... Línea 302...
302
 
302
 
303
        // Returns the instance as long as the area is supported.
303
        // Returns the instance as long as the area is supported.
Línea 362... Línea 362...
362
    /**
362
    /**
363
     * Test for post attachments.
363
     * Test for post attachments.
364
     *
364
     *
365
     * @return void
365
     * @return void
366
     */
366
     */
367
    public function test_attach_files() {
367
    public function test_attach_files(): void {
368
        global $DB;
368
        global $DB;
Línea 369... Línea 369...
369
 
369
 
Línea 370... Línea 370...
370
        $fs = get_file_storage();
370
        $fs = get_file_storage();
Línea 463... Línea 463...
463
    }
463
    }
Línea 464... Línea 464...
464
 
464
 
465
    /**
465
    /**
466
     * Tests that reindexing works in order starting from the forum with most recent discussion.
466
     * Tests that reindexing works in order starting from the forum with most recent discussion.
467
     */
467
     */
468
    public function test_posts_get_contexts_to_reindex() {
468
    public function test_posts_get_contexts_to_reindex(): void {
Línea 469... Línea 469...
469
        global $DB;
469
        global $DB;
470
 
470