Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 203... Línea 203...
203
        $COURSE = $SITE;
203
        $COURSE = $SITE;
Línea 204... Línea 204...
204
 
204
 
205
        // reinitialise following globals
205
        // reinitialise following globals
206
        $OUTPUT = new bootstrap_renderer();
206
        $OUTPUT = new bootstrap_renderer();
-
 
207
        $PAGE = new moodle_page();
207
        $PAGE = new moodle_page();
208
        \navigation_node::reset_all_data();
208
        $FULLME = null;
209
        $FULLME = null;
209
        $ME = null;
210
        $ME = null;
210
        $SCRIPT = null;
211
        $SCRIPT = null;
211
        $FILTERLIB_PRIVATE = null;
212
        $FILTERLIB_PRIVATE = null;
Línea 271... Línea 272...
271
            \core_group\customfield\group_handler::reset_caches();
272
            \core_group\customfield\group_handler::reset_caches();
272
        }
273
        }
273
        if (class_exists('\core_group\customfield\grouping_handler')) {
274
        if (class_exists('\core_group\customfield\grouping_handler')) {
274
            \core_group\customfield\grouping_handler::reset_caches();
275
            \core_group\customfield\grouping_handler::reset_caches();
275
        }
276
        }
-
 
277
        if (class_exists('\core_reportbuilder\customfield\report_handler')) {
-
 
278
            \core_reportbuilder\customfield\report_handler::reset_caches();
-
 
279
        }
Línea 276... Línea 280...
276
 
280
 
277
        // Clear static cache within restore.
281
        // Clear static cache within restore.
278
        if (class_exists('restore_section_structure_step')) {
282
        if (class_exists('restore_section_structure_step')) {
279
            restore_section_structure_step::reset_caches();
283
            restore_section_structure_step::reset_caches();
Línea 312... Línea 316...
312
            self::$lastdbwrites = $DB->perf_get_writes();
316
            self::$lastdbwrites = $DB->perf_get_writes();
313
        }
317
        }
Línea 314... Línea 318...
314
 
318
 
315
        if ($warnings) {
319
        if ($warnings) {
316
            $warnings = implode("\n", $warnings);
320
            $warnings = implode("\n", $warnings);
317
            trigger_error($warnings, E_USER_WARNING);
321
            throw new \core_phpunit\exception\test_exception($warnings);
318
        }
322
        }
Línea 319... Línea 323...
319
    }
323
    }
320
 
324
 
Línea 528... Línea 532...
528
 
532
 
529
        $template = <<<EOF
533
        $template = <<<EOF
530
            <testsuite name="@component@_testsuite">
534
            <testsuite name="@component@_testsuite">
531
              <directory suffix="_test.php">@dir@</directory>
535
              <directory suffix="_test.php">@dir@</directory>
-
 
536
              <exclude>@dir@/classes</exclude>
532
              <exclude>@dir@/classes</exclude>
537
              <exclude>@dir@/fixtures</exclude>
Línea 533... Línea 538...
533
            </testsuite>
538
            </testsuite>
534
 
539
 
Línea 619... Línea 624...
619
        global $CFG;
624
        global $CFG;
Línea 620... Línea 625...
620
 
625
 
621
        $template = <<<EOT
626
        $template = <<<EOT
622
            <testsuites>
627
            <testsuites>
623
              <testsuite name="@component@_testsuite">
628
              <testsuite name="@component@_testsuite">
624
                <directory suffix="_test.php">.</directory>
629
                <directory suffix="_test.php">tests</directory>
-
 
630
                <exclude>tests/classes</exclude>
625
                <exclude>./classes</exclude>
631
                <exclude>tests/fixtures</exclude>
626
              </testsuite>
632
              </testsuite>
627
            </testsuites>
633
            </testsuites>
628
          EOT;
634
          EOT;
629
        $coveragedefault = <<<EOT
635
        $coveragedefault = <<<EOT
630
            <include>
636
            <include>
631
              <directory suffix=".php">.</directory>
637
              <directory suffix=".php">.</directory>
632
            </include>
638
            </include>
633
            <exclude>
639
            <exclude>
634
              <directory suffix="_test.php">.</directory>
640
              <directory suffix="_test.php">tests</directory>
635
            </exclude>
641
            </exclude>
Línea 636... Línea 642...
636
        EOT;
642
        EOT;
637
 
643