mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-75880 phpunit: fix all @coversDefaultClass missing @covers
Because @coversDefaultClass doesn't indicate any coverage (it's just an alias to avoid having to write the class name in @covers), this commit fixes all the files that were using that annotation and missing any @covers. Basically, replacing one by the other and done.
This commit is contained in:
parent
fee1b8ce5f
commit
d590b08dfa
17 changed files with 45 additions and 89 deletions
|
@ -14,15 +14,6 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Unit tests for core\content\exportable_items\exportable_filearea.
|
||||
*
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2020 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace core\content\export\exportable_items;
|
||||
|
@ -38,7 +29,11 @@ use stdClass;
|
|||
/**
|
||||
* Unit tests for the `exportable_filearea` export item class.
|
||||
*
|
||||
* @coversDefaultClass \core\content\exportable_items\exportable_filearea
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2020 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @covers \core\content\exportable_items\exportable_filearea
|
||||
*/
|
||||
class exportable_filearea_test extends advanced_testcase {
|
||||
|
||||
|
|
|
@ -14,15 +14,6 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Unit tests for core\content\exportable_items\exportable_stored_file.
|
||||
*
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2020 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace core\content\export\exportable_items;
|
||||
|
@ -37,7 +28,11 @@ use stored_file;
|
|||
/**
|
||||
* Unit tests for the `exportable_stored_file` export item class.
|
||||
*
|
||||
* @coversDefaultClass \core\content\exportable_items\exportable_stored_file
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2020 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @covers \core\content\exportable_items\exportable_stored_file
|
||||
*/
|
||||
class exportable_stored_file_test extends advanced_testcase {
|
||||
|
||||
|
|
|
@ -14,15 +14,6 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Unit tests for core\content\exportable_items\exportable_textarea.
|
||||
*
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2020 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace core\content\export\exportable_items;
|
||||
|
@ -38,7 +29,11 @@ use stdClass;
|
|||
/**
|
||||
* Unit tests for the `exportable_textarea` export item class.
|
||||
*
|
||||
* @coversDefaultClass \core\content\exportable_items\exportable_textarea
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2020 Andrew Nicols <andrew@nicols.co.uk>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @covers \core\content\exportable_items\exportable_textarea
|
||||
*/
|
||||
class exportable_textarea_test extends advanced_testcase {
|
||||
|
||||
|
|
|
@ -14,15 +14,6 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Unit tests for core\content\export\exporters\course_exporter.
|
||||
*
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2020 Simey Lameze <simey@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace core\content\export\exporters;
|
||||
|
@ -36,7 +27,11 @@ use core\content\export\zipwriter;
|
|||
/**
|
||||
* Unit tests for activity exporter.
|
||||
*
|
||||
* @coversDefaultClass \core\content\export\exporters\course_exporter
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2020 Simey Lameze <simey@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||
* @covers \core\content\export\exporters\course_exporter
|
||||
*/
|
||||
class course_exporter_test extends advanced_testcase {
|
||||
|
||||
|
|
|
@ -14,15 +14,6 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Unit tests for core\content\zipwriter.
|
||||
*
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2020 Simey Lameze <simey@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace core\content\export;
|
||||
|
@ -35,7 +26,11 @@ use ZipArchive;
|
|||
/**
|
||||
* Unit tests for core\content\zipwriter.
|
||||
*
|
||||
* @coversDefaultClass \core\content\export\zipwriter
|
||||
* @package core
|
||||
* @category test
|
||||
* @copyright 2020 Simey Lameze <simey@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||
* @covers \core\content\export\zipwriter
|
||||
*/
|
||||
class zipwriter_test extends advanced_testcase {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue