From 4842ae967cff15700083d3e4b948357faac285ef Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Sun, 30 Oct 2022 00:23:05 +0200 Subject: [PATCH] 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. --- lib/table/tests/local/filter/filter_test.php | 11 +---------- lib/tests/oauth2_test.php | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/table/tests/local/filter/filter_test.php b/lib/table/tests/local/filter/filter_test.php index c9d8a4a680e0b..1b37f312894bb 100644 --- a/lib/table/tests/local/filter/filter_test.php +++ b/lib/table/tests/local/filter/filter_test.php @@ -14,15 +14,6 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . -/** - * Unit tests for core_table\local\filter\filter. - * - * @package core_table - * @category test - * @copyright 2020 Andrew Nicols - * @license http://www.gnu.org/copyleft/gpl.html GNU Public License - */ - declare(strict_types=1); namespace core_table\local\filter; @@ -33,11 +24,11 @@ /** * Unit tests for core_table\local\filter\filter. * - * @coversDefaultClass \core_table\local\filter\filter * @package core_table * @category test * @copyright 2020 Andrew Nicols * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @covers \core_table\local\filter\filter */ class filter_test extends advanced_testcase { /** diff --git a/lib/tests/oauth2_test.php b/lib/tests/oauth2_test.php index c21d6049b6a89..012aa340e4e6a 100644 --- a/lib/tests/oauth2_test.php +++ b/lib/tests/oauth2_test.php @@ -30,7 +30,7 @@ * @package core * @copyright 2017 Damyon Wiese * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later. - * @coversDefaultClass \core\oauth2\api + * @covers \core\oauth2\api */ class core_oauth2_testcase extends advanced_testcase {