Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 28... Línea 28...
28
 * @package    tool_usertours
28
 * @package    tool_usertours
29
 * @copyright  2016 Andrew Nicols <andrew@nicols.co.uk>
29
 * @copyright  2016 Andrew Nicols <andrew@nicols.co.uk>
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
 * @covers \tool_usertours\manager
31
 * @covers \tool_usertours\manager
32
 */
32
 */
33
class manager_test extends \advanced_testcase {
33
final class manager_test extends \advanced_testcase {
34
    // There are shared helpers for these tests in the helper trait.
34
    // There are shared helpers for these tests in the helper trait.
35
    use \tool_usertours_helper_trait;
35
    use \tool_usertours_helper_trait;
Línea 36... Línea 36...
36
 
36
 
37
    /**
37
    /**
Línea 42... Línea 42...
42
    /**
42
    /**
43
     * Setup to store the DB reference.
43
     * Setup to store the DB reference.
44
     */
44
     */
45
    public function setUp(): void {
45
    public function setUp(): void {
46
        global $DB;
46
        global $DB;
-
 
47
        parent::setUp();
Línea 47... Línea 48...
47
 
48
 
48
        $this->db = $DB;
49
        $this->db = $DB;
Línea 49... Línea 50...
49
    }
50
    }
Línea 53... Línea 54...
53
     */
54
     */
54
    public function tearDown(): void {
55
    public function tearDown(): void {
55
        global $DB;
56
        global $DB;
Línea 56... Línea 57...
56
 
57
 
-
 
58
        $DB = $this->db;
57
        $DB = $this->db;
59
        parent::tearDown();
Línea 58... Línea 60...
58
    }
60
    }
59
 
61
 
60
    /**
62
    /**