Skip to content

Commit

Permalink
codeverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Jun 20, 2024
1 parent d1bad81 commit 96587f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/bulkdelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
use moodle_url;
use stdClass;


// @codeCoverageIgnoreStart
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/enrol/locallib.php');

// @codeCoverageIgnoreEnd
/**
* A bulk operation for the coursecompleted enrolment plugin to delete selected users enrolments.
*
Expand Down
2 changes: 2 additions & 0 deletions classes/bulkedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@

namespace enrol_coursecompleted;

// @codeCoverageIgnoreStart
defined('MOODLE_INTERNAL') || die();
require_once($CFG->dirroot . '/enrol/locallib.php');
// @codeCoverageIgnoreEnd

/**
* A bulk operation for the coursecompleted enrolment plugin to edit selected users enrolments.
Expand Down
4 changes: 3 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@
<directory suffix=".php">classes</directory>
<directory suffix=".php">tests/generator</directory>
<file>externallib.php</file>
<file>lib.php</file>
<file>locallib.php</file>
<file>renderer.php</file>
<file>rsslib.php</file>
</include>
<exclude>
<file>lib.php</file>
</exclude>
</coverage>

</phpunit>

0 comments on commit 96587f4

Please sign in to comment.