Skip to content

Commit

Permalink
Coverage info
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimonus committed Jan 9, 2024
1 parent 3c84926 commit 618b1c9
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cli/delete_attempts.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace local_deleteoldquizattempts;

define('CLI_SCRIPT', true);

require_once(__DIR__ . '/../../../config.php');
Expand Down Expand Up @@ -50,5 +52,5 @@
cli_error(get_string('cliunknowoption', 'admin', $unrecognized), 2);
}

$helper = new local_deleteoldquizattempts\helper();
$helper = new helper();
$helper->delete_attempts_cli_handler($options);
4 changes: 3 additions & 1 deletion cli/delete_unused_questions.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace local_deleteoldquizattempts;

define('CLI_SCRIPT', true);

require_once(__DIR__ . '/../../../config.php');
Expand All @@ -45,5 +47,5 @@
cli_error(get_string('cliunknowoption', 'admin', $unrecognized), 2);
}

$helper = new local_deleteoldquizattempts\helper();
$helper = new helper();
$helper->delete_questions_cli_handler($options);
1 change: 1 addition & 0 deletions tests/delete_attempts_cli_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* @package local_deleteoldquizattempts
* @copyright 2019 Vadim Dvorovenko <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @covers \local_deleteoldquizattempts\helper::delete_attempts_cli_handler
*/
class delete_attempts_cli_test extends advanced_testcase {

Expand Down
1 change: 1 addition & 0 deletions tests/delete_attempts_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* @package local_deleteoldquizattempts
* @copyright 2019 Vadim Dvorovenko <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @covers \local_deleteoldquizattempts\helper::delete_attempts
*/
class delete_attempts_test extends advanced_testcase {

Expand Down
1 change: 1 addition & 0 deletions tests/delete_questions_cli_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* @package local_deleteoldquizattempts
* @copyright 2019 Vadim Dvorovenko <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @covers \local_deleteoldquizattempts\helper::delete_questions_cli_handler
*/
class delete_questions_cli_test extends advanced_testcase {

Expand Down
1 change: 1 addition & 0 deletions tests/delete_questions_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* @package local_deleteoldquizattempts
* @copyright 2019 Vadim Dvorovenko <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @covers \local_deleteoldquizattempts\helper::delete_unused_questions
*/
class delete_questions_test extends advanced_testcase {

Expand Down
1 change: 1 addition & 0 deletions tests/task_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* @package local_deleteoldquizattempts
* @copyright 2019 Vadim Dvorovenko <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @covers \local_deleteoldquizattempts\helper::task_handler
*/
class task_test extends advanced_testcase {

Expand Down

0 comments on commit 618b1c9

Please sign in to comment.