Skip to content

Commit

Permalink
MDL-19579 code coverage - add initial $includecoverage attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jun 26, 2009
1 parent e5d06af commit d47cf63
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions course/simpletest/testcourselib.php
Expand Up @@ -39,6 +39,7 @@

class courselib_test extends UnitTestCase {
var $realDB;
public static $includecoverage = array('course/lib.php');

function setUp() {
global $DB;
Expand Down
3 changes: 2 additions & 1 deletion course/simpletest/testexternal.php
Expand Up @@ -53,6 +53,7 @@ class course_external_test extends UnitTestCase {
var $categoryid;
var $roleid;
var $context;
public static $includecoverage = array('user/lib.php');
function setUp() {
global $DB;
Expand Down Expand Up @@ -330,4 +331,4 @@ function test_get_course_modules() {
}
*/
}
?>
?>
1 change: 1 addition & 0 deletions grade/simpletest/testreportlib.php
Expand Up @@ -44,6 +44,7 @@ class gradereportlib_test extends FakeDBUnitTestCase {
var $courseid = 1;
var $context = null;
var $report = null;
public static $includecoverage = array('grade/report/lib.php');

function setUp() {
$this->report = new grade_report($this->courseid, $this->context);
Expand Down
3 changes: 2 additions & 1 deletion group/simpletest/testexternal.php
Expand Up @@ -53,6 +53,7 @@ class group_external_test extends UnitTestCase {
var $categoryid;
var $roleid;
var $context;
public static $includecoverage = array('user/lib.php');
function setUp() {
global $DB;
Expand Down Expand Up @@ -284,4 +285,4 @@ function test_delete_groups() {
}
*/
}
?>
?>
3 changes: 2 additions & 1 deletion lib/ajax/simpletest/testajaxlib.php
Expand Up @@ -38,6 +38,7 @@
*/
abstract class ajaxlib_unit_test_base extends UnitTestCase {
protected $requires;
public static $includecoverage = array('lib/ajax/ajaxlib.php');

public function setUp() {
parent::setUp();
Expand Down Expand Up @@ -503,4 +504,4 @@ function test_ajaxenabled()
}
}

?>
?>
1 change: 1 addition & 0 deletions lib/form/simpletest/testduration.php
Expand Up @@ -38,6 +38,7 @@
*/
class duration_form_element_test extends UnitTestCase {
private $element;
public static $includecoverage = array('lib/form/duration.php');

function setUp() {
$this->element = new MoodleQuickForm_duration();
Expand Down

0 comments on commit d47cf63

Please sign in to comment.