mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase
This commit is contained in:
parent
814a96edfb
commit
1cbf2a20ca
15 changed files with 29 additions and 26 deletions
|
@ -954,7 +954,7 @@ class database_driver_testcase extends PHPUnit_Framework_TestCase {
|
|||
self::$extradb = $d;
|
||||
}
|
||||
|
||||
public function setUp() {
|
||||
protected function setUp() {
|
||||
global $DB;
|
||||
|
||||
if (self::$extradb) {
|
||||
|
@ -964,7 +964,7 @@ class database_driver_testcase extends PHPUnit_Framework_TestCase {
|
|||
}
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
protected function tearDown() {
|
||||
// delete all test tables
|
||||
$dbman = $this->tdb->get_manager();
|
||||
$tables = $this->tdb->get_tables(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue