Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 27... Línea 27...
27
 *
27
 *
28
 * @package     core_search
28
 * @package     core_search
29
 * @copyright   2017 Matt Porritt <mattp@catalyst-au.net>
29
 * @copyright   2017 Matt Porritt <mattp@catalyst-au.net>
30
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
31
 */
31
 */
32
class base_activity_test extends \advanced_testcase {
32
final class base_activity_test extends \advanced_testcase {
33
    /**
33
    /**
34
     * @var \core_search::manager
34
     * @var \core_search::manager
35
     */
35
     */
36
    protected $search = null;
36
    protected $search = null;
Línea 51... Línea 51...
51
    /** @var \stdClass[] Array of test forum objects */
51
    /** @var \stdClass[] Array of test forum objects */
52
    protected $forums;
52
    protected $forums;
Línea 53... Línea 53...
53
 
53
 
54
    public function setUp(): void {
54
    public function setUp(): void {
-
 
55
        global $DB;
55
        global $DB;
56
        parent::setUp();
56
        $this->resetAfterTest();
57
        $this->resetAfterTest();
Línea 57... Línea 58...
57
        set_config('enableglobalsearch', true);
58
        set_config('enableglobalsearch', true);
58
 
59
 
Línea 101... Línea 102...
101
        if ($this->generator) {
102
        if ($this->generator) {
102
            // Moodle DML freaks out if we don't teardown the temp table after each run.
103
            // Moodle DML freaks out if we don't teardown the temp table after each run.
103
            $this->generator->teardown();
104
            $this->generator->teardown();
104
            $this->generator = null;
105
            $this->generator = null;
105
        }
106
        }
-
 
107
        parent::tearDown();
106
    }
108
    }
Línea 107... Línea 109...
107
 
109
 
108
    /**
110
    /**
109
     * Test base activity get search fileareas
111
     * Test base activity get search fileareas