Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 56... Línea 56...
56
    /**
56
    /**
57
     * Indexing users contents.
57
     * Indexing users contents.
58
     *
58
     *
59
     * @return void
59
     * @return void
60
     */
60
     */
61
    public function test_users_indexing() {
61
    public function test_users_indexing(): void {
62
        global $SITE;
62
        global $SITE;
Línea 63... Línea 63...
63
 
63
 
64
        // Returns the instance as long as the area is supported.
64
        // Returns the instance as long as the area is supported.
65
        $searcharea = \core_search\manager::get_search_area($this->userareaid);
65
        $searcharea = \core_search\manager::get_search_area($this->userareaid);
Línea 104... Línea 104...
104
    /**
104
    /**
105
     * Document contents.
105
     * Document contents.
106
     *
106
     *
107
     * @return void
107
     * @return void
108
     */
108
     */
109
    public function test_users_document() {
109
    public function test_users_document(): void {
Línea 110... Línea 110...
110
 
110
 
111
        // Returns the instance as long as the area is supported.
111
        // Returns the instance as long as the area is supported.
112
        $searcharea = \core_search\manager::get_search_area($this->userareaid);
112
        $searcharea = \core_search\manager::get_search_area($this->userareaid);
Línea 128... Línea 128...
128
    /**
128
    /**
129
     * Document accesses.
129
     * Document accesses.
130
     *
130
     *
131
     * @return void
131
     * @return void
132
     */
132
     */
133
    public function test_users_access() {
133
    public function test_users_access(): void {
134
        global $CFG;
134
        global $CFG;
Línea 135... Línea 135...
135
 
135
 
136
        // Returns the instance as long as the area is supported.
136
        // Returns the instance as long as the area is supported.
Línea 219... Línea 219...
219
    }
219
    }
Línea 220... Línea 220...
220
 
220
 
221
    /**
221
    /**
222
     * Test document icon.
222
     * Test document icon.
223
     */
223
     */
224
    public function test_get_doc_icon() {
224
    public function test_get_doc_icon(): void {
225
        $searcharea = \core_search\manager::get_search_area($this->userareaid);
225
        $searcharea = \core_search\manager::get_search_area($this->userareaid);
226
        $user = self::getDataGenerator()->create_user();
226
        $user = self::getDataGenerator()->create_user();
Línea 227... Línea 227...
227
        $doc = $searcharea->get_document($user);
227
        $doc = $searcharea->get_document($user);
Línea 233... Línea 233...
233
    }
233
    }
Línea 234... Línea 234...
234
 
234
 
235
    /**
235
    /**
236
     * Test assigned search categories.
236
     * Test assigned search categories.
237
     */
237
     */
238
    public function test_get_category_names() {
238
    public function test_get_category_names(): void {
Línea 239... Línea 239...
239
        $searcharea = \core_search\manager::get_search_area($this->userareaid);
239
        $searcharea = \core_search\manager::get_search_area($this->userareaid);
240
 
240
 
241
        $expected = ['core-users'];
241
        $expected = ['core-users'];