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_received_indexing() {
57
    public function test_message_received_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->messagereceivedareaid);
60
        $searcharea = \core_search\manager::get_search_area($this->messagereceivedareaid);
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_received_indexing_contexts() {
113
    public function test_message_received_indexing_contexts(): void {
114
        global $SITE;
114
        global $SITE;
Línea 115... Línea 115...
115
        require_once(__DIR__ . '/search_sent_test.php');
115
        require_once(__DIR__ . '/search_sent_test.php');
Línea 175... Línea 175...
175
    /**
175
    /**
176
     * Document contents.
176
     * Document contents.
177
     *
177
     *
178
     * @return void
178
     * @return void
179
     */
179
     */
180
    public function test_message_received_document() {
180
    public function test_message_received_document(): void {
Línea 181... Línea 181...
181
 
181
 
182
        // Returns the instance as long as the area is supported.
182
        // Returns the instance as long as the area is supported.
183
        $searcharea = \core_search\manager::get_search_area($this->messagereceivedareaid);
183
        $searcharea = \core_search\manager::get_search_area($this->messagereceivedareaid);
Línea 221... Línea 221...
221
    /**
221
    /**
222
     * Document accesses.
222
     * Document accesses.
223
     *
223
     *
224
     * @return void
224
     * @return void
225
     */
225
     */
226
    public function test_message_received_access() {
226
    public function test_message_received_access(): void {
227
        global $CFG;
227
        global $CFG;
Línea 228... Línea 228...
228
 
228
 
229
        // Returns the instance as long as the area is supported.
229
        // Returns the instance as long as the area is supported.
Línea 291... Línea 291...
291
     * Tests the case where a received message for a deleted user
291
     * Tests the case where a received message for a deleted user
292
     * is attempted to be added to the index.
292
     * is attempted to be added to the index.
293
     *
293
     *
294
     * @return void
294
     * @return void
295
     */
295
     */
296
    public function test_message_received_deleted_user() {
296
    public function test_message_received_deleted_user(): void {
Línea 297... Línea 297...
297
 
297
 
298
        // Returns the instance as long as the area is supported.
298
        // Returns the instance as long as the area is supported.
299
        $searcharea = \core_search\manager::get_search_area($this->messagereceivedareaid);
299
        $searcharea = \core_search\manager::get_search_area($this->messagereceivedareaid);
Línea 332... Línea 332...
332
    }
332
    }
Línea 333... Línea 333...
333
 
333
 
334
    /**
334
    /**
335
     * Test document icon.
335
     * Test document icon.
336
     */
336
     */
337
    public function test_get_doc_icon() {
337
    public function test_get_doc_icon(): void {
Línea 338... Línea 338...
338
        $searcharea = \core_search\manager::get_search_area($this->messagereceivedareaid);
338
        $searcharea = \core_search\manager::get_search_area($this->messagereceivedareaid);
339
 
339
 
340
        $document = $this->getMockBuilder('\core_search\document')
340
        $document = $this->getMockBuilder('\core_search\document')
Línea 348... Línea 348...
348
    }
348
    }
Línea 349... Línea 349...
349
 
349
 
350
    /**
350
    /**
351
     * Test assigned search categories.
351
     * Test assigned search categories.
352
     */
352
     */
353
    public function test_get_category_names() {
353
    public function test_get_category_names(): void {
Línea 354... Línea 354...
354
        $searcharea = \core_search\manager::get_search_area($this->messagereceivedareaid);
354
        $searcharea = \core_search\manager::get_search_area($this->messagereceivedareaid);
355
 
355
 
356
        $expected = ['core-users'];
356
        $expected = ['core-users'];