Skip to content

Commit

Permalink
PHPUnit 11
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Jan 27, 2025
1 parent 2031c1e commit db0b504
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 112 deletions.
51 changes: 0 additions & 51 deletions phpunit.xml

This file was deleted.

18 changes: 9 additions & 9 deletions tests/condition_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @copyright eWallah (www.eWallah.net)
* @author Renaat Debleu <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @coversDefaultClass \availability_language
* @coversDefaultClass \availability_language)]
*/
final class condition_test extends \advanced_testcase {
/**
Expand All @@ -50,7 +50,7 @@ public function setUp(): void {

/**
* Tests constructing and using language condition as part of tree.
* @covers \availability_language\condition
* #[CoversClass(availability_language\condition)]
*/
public function test_in_tree(): void {
global $CFG;
Expand Down Expand Up @@ -114,7 +114,7 @@ public function test_in_tree(): void {

/**
* Tests section availability.
* @covers \availability_language\condition
* #[CoversClass(availability_language\condition)]
*/
public function test_sections(): void {
global $DB;
Expand Down Expand Up @@ -149,7 +149,7 @@ public function test_sections(): void {

/**
* Tests the constructor including error conditions.
* @covers \availability_language\condition
* #[CoversClass(availability_language\condition)]
*/
public function test_constructor(): void {
// This works with no parameters.
Expand Down Expand Up @@ -181,7 +181,7 @@ public function test_constructor(): void {

/**
* Tests the save() function.
* @covers \availability_language\condition
* #[CoversClass(availability_language\condition)]
*/
public function test_save(): void {
$structure = (object)['id' => 'fr'];
Expand All @@ -193,7 +193,7 @@ public function test_save(): void {

/**
* Tests the get_description and get_standalone_description functions.
* @covers \availability_language\condition
* #[CoversClass(availability_language\condition)]
*/
public function test_get_description(): void {
$info = new mock_info();
Expand All @@ -212,7 +212,7 @@ public function test_get_description(): void {

/**
* Tests is available.
* @covers \availability_language\condition
* #[CoversClass(availability_language\condition)]
*/
public function test_is_available(): void {
global $DB, $USER;
Expand All @@ -235,7 +235,7 @@ public function test_is_available(): void {

/**
* Tests using language condition in front end.
* @covers \availability_language\frontend
* #[CoversClass(availability_language\frontend)]
*/
public function test_frontend(): void {
global $CFG;
Expand Down Expand Up @@ -284,7 +284,7 @@ public function test_frontend(): void {

/**
* Tests using language condition in back end.
* @covers \availability_language\condition
* #[CoversClass(availability_language\condition)]
*/
public function test_backend(): void {
global $DB, $PAGE;
Expand Down
51 changes: 0 additions & 51 deletions tests/phpunit.xml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/privacy/privacy_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
final class privacy_test extends provider_testcase {
/**
* Test returning metadata.
* @covers \availability_language\privacy\provider
* #[CoversClass(availability_language\privacy\provider)]
*/
public function test_get_metadata(): void {
$collection = new \core_privacy\local\metadata\collection('availability_language');
Expand Down

0 comments on commit db0b504

Please sign in to comment.