-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
10 additions
and
112 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 { | ||
/** | ||
|
@@ -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; | ||
|
@@ -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; | ||
|
@@ -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. | ||
|
@@ -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']; | ||
|
@@ -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(); | ||
|
@@ -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; | ||
|
@@ -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; | ||
|
@@ -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; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters