Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 142... Línea 142...
142
     * from the total so we should only have 75 records total.
142
     * from the total so we should only have 75 records total.
143
     *
143
     *
144
     * Test 6: data_get_all_recordids() again. This time we are testing approved database records. We only want to
144
     * Test 6: data_get_all_recordids() again. This time we are testing approved database records. We only want to
145
     * display the records that have been approved. In this record set we have 89 approved records.
145
     * display the records that have been approved. In this record set we have 89 approved records.
146
     */
146
     */
147
    public function test_advanced_search_sql_section() {
147
    public function test_advanced_search_sql_section(): void {
148
        global $DB;
148
        global $DB;
Línea 149... Línea 149...
149
 
149
 
150
        // we already have 2 users, we need 98 more - let's ignore the fact that guest can not post anywhere
150
        // we already have 2 users, we need 98 more - let's ignore the fact that guest can not post anywhere
151
        // We reset the user sequence here to ensure we get the expected numbers.
151
        // We reset the user sequence here to ensure we get the expected numbers.
Línea 257... Línea 257...
257
        $approvesql = ' AND r.approved=1 ';
257
        $approvesql = ' AND r.approved=1 ';
258
        $recordids = data_get_all_recordids($this->recorddata->id, $approvesql, $params);
258
        $recordids = data_get_all_recordids($this->recorddata->id, $approvesql, $params);
259
        $this->assertEquals($this->approvedatarecordcount, count($recordids));
259
        $this->assertEquals($this->approvedatarecordcount, count($recordids));
260
    }
260
    }
Línea 261... Línea 261...
261
 
261
 
262
    public function test_advanced_search_tags() {
262
    public function test_advanced_search_tags(): void {
263
        $this->resetAfterTest();
263
        $this->resetAfterTest();
Línea 264... Línea 264...
264
        $this->setAdminUser();
264
        $this->setAdminUser();
265
 
265
 
Línea 296... Línea 296...
296
    /**
296
    /**
297
     * Indexing database entries contents.
297
     * Indexing database entries contents.
298
     *
298
     *
299
     * @return void
299
     * @return void
300
     */
300
     */
301
    public function test_data_entries_indexing() {
301
    public function test_data_entries_indexing(): void {
302
        global $DB;
302
        global $DB;
Línea 303... Línea 303...
303
 
303
 
304
        // Returns the instance as long as the area is supported.
304
        // Returns the instance as long as the area is supported.
305
        $searcharea = \core_search\manager::get_search_area($this->databaseentryareaid);
305
        $searcharea = \core_search\manager::get_search_area($this->databaseentryareaid);
Línea 371... Línea 371...
371
    /**
371
    /**
372
     * Document contents.
372
     * Document contents.
373
     *
373
     *
374
     * @return void
374
     * @return void
375
     */
375
     */
376
    public function test_data_entries_document() {
376
    public function test_data_entries_document(): void {
377
        global $DB;
377
        global $DB;
Línea 378... Línea 378...
378
 
378
 
379
        // Returns the instance as long as the area is supported.
379
        // Returns the instance as long as the area is supported.
380
        $searcharea = \core_search\manager::get_search_area($this->databaseentryareaid);
380
        $searcharea = \core_search\manager::get_search_area($this->databaseentryareaid);
Línea 578... Línea 578...
578
    }
578
    }
Línea 579... Línea 579...
579
 
579
 
580
    /**
580
    /**
581
     * Group support for data entries.
581
     * Group support for data entries.
582
     */
582
     */
583
    public function test_data_entries_group_support() {
583
    public function test_data_entries_group_support(): void {
Línea 584... Línea 584...
584
        global $DB;
584
        global $DB;
585
 
585
 
586
        // Get the search area and test generators.
586
        // Get the search area and test generators.
Línea 651... Línea 651...
651
    /**
651
    /**
652
     * Document accesses.
652
     * Document accesses.
653
     *
653
     *
654
     * @return void
654
     * @return void
655
     */
655
     */
656
    public function test_data_entries_access() {
656
    public function test_data_entries_access(): void {
657
        global $DB;
657
        global $DB;
Línea 658... Línea 658...
658
 
658
 
659
        // Returns the instance as long as the area is supported.
659
        // Returns the instance as long as the area is supported.
660
        $searcharea = \core_search\manager::get_search_area($this->databaseentryareaid);
660
        $searcharea = \core_search\manager::get_search_area($this->databaseentryareaid);
Línea 849... Línea 849...
849
    /**
849
    /**
850
     * Test for file contents.
850
     * Test for file contents.
851
     *
851
     *
852
     * @return void
852
     * @return void
853
     */
853
     */
854
    public function test_attach_files() {
854
    public function test_attach_files(): void {
855
        global $DB, $USER;
855
        global $DB, $USER;
Línea 856... Línea 856...
856
 
856
 
Línea 857... Línea 857...
857
        $fs = get_file_storage();
857
        $fs = get_file_storage();