| Línea 31... |
Línea 31... |
| 31 |
* @package core_question
|
31 |
* @package core_question
|
| 32 |
* @category test
|
32 |
* @category test
|
| 33 |
* @copyright 2013 The Open University
|
33 |
* @copyright 2013 The Open University
|
| 34 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
34 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
| 35 |
*/
|
35 |
*/
|
| 36 |
class questionusage_autosave_test extends \qbehaviour_walkthrough_test_base {
|
36 |
final class questionusage_autosave_test extends \qbehaviour_walkthrough_test_base {
|
| Línea 37... |
Línea 37... |
| 37 |
|
37 |
|
| 38 |
public function test_autosave_then_display(): void {
|
38 |
public function test_autosave_then_display(): void {
|
| 39 |
$this->resetAfterTest();
|
39 |
$this->resetAfterTest();
|
| 40 |
$generator = $this->getDataGenerator()->get_plugin_generator('core_question');
|
40 |
$generator = $this->getDataGenerator()->get_plugin_generator('core_question');
|
| Línea 745... |
Línea 745... |
| 745 |
|
745 |
|
| 746 |
protected function tearDown(): void {
|
746 |
protected function tearDown(): void {
|
| 747 |
// This test relies on the destructor for the second DB connection being called before running the next test.
|
747 |
// This test relies on the destructor for the second DB connection being called before running the next test.
|
| 748 |
// Without this change - there will be unit test failures on "some" DBs (MySQL).
|
748 |
// Without this change - there will be unit test failures on "some" DBs (MySQL).
|
| - |
|
749 |
gc_collect_cycles();
|
| 749 |
gc_collect_cycles();
|
750 |
parent::tearDown();
|
| 750 |
}
|
751 |
}
|