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_test extends \advanced_testcase {
32
final class base_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 44... Línea 44...
44
     * @var Instace of testable_engine.
44
     * @var Instace of testable_engine.
45
     */
45
     */
46
    protected $engine = null;
46
    protected $engine = null;
Línea 47... Línea 47...
47
 
47
 
-
 
48
    public function setUp(): void {
48
    public function setUp(): void {
49
        parent::setUp();
49
        $this->resetAfterTest();
50
        $this->resetAfterTest();
Línea 50... Línea 51...
50
        set_config('enableglobalsearch', true);
51
        set_config('enableglobalsearch', true);
51
 
52
 
Línea 61... Línea 62...
61
        if ($this->generator) {
62
        if ($this->generator) {
62
            // Moodle DML freaks out if we don't teardown the temp table after each run.
63
            // Moodle DML freaks out if we don't teardown the temp table after each run.
63
            $this->generator->teardown();
64
            $this->generator->teardown();
64
            $this->generator = null;
65
            $this->generator = null;
65
        }
66
        }
-
 
67
        parent::tearDown();
66
    }
68
    }
Línea 67... Línea 69...
67
 
69
 
68
    /**
70
    /**
69
     * Test base get search fileareas
71
     * Test base get search fileareas