Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 28... Línea 28...
28
 * @package     search_simpledb
28
 * @package     search_simpledb
29
 * @category    test
29
 * @category    test
30
 * @copyright   2016 David Monllao {@link http://www.davidmonllao.com}
30
 * @copyright   2016 David Monllao {@link http://www.davidmonllao.com}
31
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
31
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 */
32
 */
33
class engine_test extends \advanced_testcase {
33
final class engine_test extends \advanced_testcase {
Línea 34... Línea 34...
34
 
34
 
35
    /**
35
    /**
36
     * @var \core_search::manager
36
     * @var \core_search::manager
37
     */
37
     */
Línea 51... Línea 51...
51
     * Initial stuff.
51
     * Initial stuff.
52
     *
52
     *
53
     * @return void
53
     * @return void
54
     */
54
     */
55
    public function setUp(): void {
55
    public function setUp(): void {
-
 
56
        parent::setUp();
56
        $this->resetAfterTest();
57
        $this->resetAfterTest();
Línea 57... Línea 58...
57
 
58
 
58
        if ($this->requires_manual_index_update()) {
59
        if ($this->requires_manual_index_update()) {
59
            // We need to update fulltext index manually, which requires an alter table statement.
60
            // We need to update fulltext index manually, which requires an alter table statement.
Línea 84... Línea 85...
84
        if ($this->generator) {
85
        if ($this->generator) {
85
            // Moodle DML freaks out if we don't teardown the temp table after each run.
86
            // Moodle DML freaks out if we don't teardown the temp table after each run.
86
            $this->generator->teardown();
87
            $this->generator->teardown();
87
            $this->generator = null;
88
            $this->generator = null;
88
        }
89
        }
-
 
90
        parent::tearDown();
89
    }
91
    }
Línea 90... Línea 92...
90
 
92
 
91
    /**
93
    /**
92
     * Test indexing process.
94
     * Test indexing process.