Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 52... Línea 52...
52
    /**
52
    /**
53
     * Indexing messages contents.
53
     * Indexing messages contents.
54
     *
54
     *
55
     * @return void
55
     * @return void
56
     */
56
     */
57
    public function test_message_sent_indexing() {
57
    public function test_message_sent_indexing(): void {
Línea 58... Línea 58...
58
 
58
 
59
        // Returns the instance as long as the area is supported.
59
        // Returns the instance as long as the area is supported.
60
        $searcharea = \core_search\manager::get_search_area($this->messagesentareaid);
60
        $searcharea = \core_search\manager::get_search_area($this->messagesentareaid);
Línea 108... Línea 108...
108
    }
108
    }
Línea 109... Línea 109...
109
 
109
 
110
    /**
110
    /**
111
     * Indexing messages, with restricted contexts.
111
     * Indexing messages, with restricted contexts.
112
     */
112
     */
113
    public function test_message_sent_indexing_contexts() {
113
    public function test_message_sent_indexing_contexts(): void {
Línea 114... Línea 114...
114
        global $SITE;
114
        global $SITE;
Línea 115... Línea 115...
115
 
115
 
Línea 189... Línea 189...
189
    /**
189
    /**
190
     * Document contents.
190
     * Document contents.
191
     *
191
     *
192
     * @return void
192
     * @return void
193
     */
193
     */
194
    public function test_message_sent_document() {
194
    public function test_message_sent_document(): void {
Línea 195... Línea 195...
195
 
195
 
196
        // Returns the instance as long as the area is supported.
196
        // Returns the instance as long as the area is supported.
197
        $searcharea = \core_search\manager::get_search_area($this->messagesentareaid);
197
        $searcharea = \core_search\manager::get_search_area($this->messagesentareaid);
Línea 235... Línea 235...
235
    /**
235
    /**
236
     * Document accesses.
236
     * Document accesses.
237
     *
237
     *
238
     * @return void
238
     * @return void
239
     */
239
     */
240
    public function test_message_sent_access() {
240
    public function test_message_sent_access(): void {
241
        global $CFG;
241
        global $CFG;
Línea 242... Línea 242...
242
 
242
 
243
        // Returns the instance as long as the area is supported.
243
        // Returns the instance as long as the area is supported.
Línea 305... Línea 305...
305
     * Tests the case where a sent message for a deleted user
305
     * Tests the case where a sent message for a deleted user
306
     * is attempted to be added to the index.
306
     * is attempted to be added to the index.
307
     *
307
     *
308
     * @return void
308
     * @return void
309
     */
309
     */
310
    public function test_message_sent_deleted_user() {
310
    public function test_message_sent_deleted_user(): void {
Línea 311... Línea 311...
311
 
311
 
312
        // Returns the instance as long as the area is supported.
312
        // Returns the instance as long as the area is supported.
313
        $searcharea = \core_search\manager::get_search_area($this->messagesentareaid);
313
        $searcharea = \core_search\manager::get_search_area($this->messagesentareaid);
Línea 347... Línea 347...
347
    }
347
    }
Línea 348... Línea 348...
348
 
348
 
349
    /**
349
    /**
350
     * Test document icon.
350
     * Test document icon.
351
     */
351
     */
352
    public function test_get_doc_icon() {
352
    public function test_get_doc_icon(): void {
Línea 353... Línea 353...
353
        $searcharea = \core_search\manager::get_search_area($this->messagesentareaid);
353
        $searcharea = \core_search\manager::get_search_area($this->messagesentareaid);
354
 
354
 
355
        $document = $this->getMockBuilder('\core_search\document')
355
        $document = $this->getMockBuilder('\core_search\document')
Línea 363... Línea 363...
363
    }
363
    }
Línea 364... Línea 364...
364
 
364
 
365
    /**
365
    /**
366
     * Test assigned search categories.
366
     * Test assigned search categories.
367
     */
367
     */
368
    public function test_get_category_names() {
368
    public function test_get_category_names(): void {
Línea 369... Línea 369...
369
        $searcharea = \core_search\manager::get_search_area($this->messagesentareaid);
369
        $searcharea = \core_search\manager::get_search_area($this->messagesentareaid);
370
 
370
 
371
        $expected = ['core-users'];
371
        $expected = ['core-users'];