-
Notifications
You must be signed in to change notification settings - Fork 2
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
14 additions
and
13 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
|
@@ -22,15 +22,16 @@ | |
* @package block_cohortspecifichtml | ||
* @copyright 2023 Alexander Bias <[email protected]> | ||
* based on code from 2022 Open LMS (https://www.openlms.net/) Petr Skoda | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
* | ||
* @coversDefaultClass \block_cohortspecifichtml | ||
*/ | ||
class block_cohortspecifichtml_test extends \advanced_testcase { | ||
final class block_cohortspecifichtml_test extends \advanced_testcase { | ||
/** | ||
* Tests instance files copying. | ||
* @covers ::instance_copy | ||
*/ | ||
public function test_instance_copy() { | ||
public function test_instance_copy(): void { | ||
global $USER; | ||
$this->resetAfterTest(); | ||
|
||
|
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 |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
* based on code from 2018 Andrew Nicols <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class privacy_test extends \core_privacy\tests\provider_testcase { | ||
final class privacy_test extends \core_privacy\tests\provider_testcase { | ||
/** | ||
* Get the list of standard format options for comparison. | ||
* | ||
|
@@ -166,7 +166,7 @@ protected function construct_course_page(\stdClass $course) { | |
* It is adopted from block_html and does not have a coverage tag there either. Thus, we set coversNothing. | ||
* @coversNothing | ||
*/ | ||
public function test_user_block() { | ||
public function test_user_block(): void { | ||
$this->resetAfterTest(); | ||
|
||
$title = 'Example title'; | ||
|
@@ -213,7 +213,7 @@ public function test_user_block() { | |
* It is adopted from block_html and does not have a coverage tag there either. Thus, we set coversNothing. | ||
* @coversNothing | ||
*/ | ||
public function test_user_block_unconfigured() { | ||
public function test_user_block_unconfigured(): void { | ||
global $DB; | ||
|
||
$this->resetAfterTest(); | ||
|
@@ -253,7 +253,7 @@ public function test_user_block_unconfigured() { | |
* It is adopted from block_html and does not have a coverage tag there either. Thus, we set coversNothing. | ||
* @coversNothing | ||
*/ | ||
public function test_user_multiple_blocks_exported() { | ||
public function test_user_multiple_blocks_exported(): void { | ||
$this->resetAfterTest(); | ||
|
||
$title = 'Example title'; | ||
|
@@ -301,7 +301,7 @@ public function test_user_multiple_blocks_exported() { | |
* It is adopted from block_html and does not have a coverage tag there either. Thus, we set coversNothing. | ||
* @coversNothing | ||
*/ | ||
public function test_course_blocks_not_exported() { | ||
public function test_course_blocks_not_exported(): void { | ||
$this->resetAfterTest(); | ||
|
||
$title = 'Example title'; | ||
|
@@ -330,7 +330,7 @@ public function test_course_blocks_not_exported() { | |
* It is adopted from block_html and does not have a coverage tag there either. Thus, we set coversNothing. | ||
* @coversNothing | ||
*/ | ||
public function test_mixed_multiple_blocks_exported() { | ||
public function test_mixed_multiple_blocks_exported(): void { | ||
$this->resetAfterTest(); | ||
|
||
$title = 'Example title'; | ||
|
@@ -372,7 +372,7 @@ public function test_mixed_multiple_blocks_exported() { | |
* It is adopted from block_html and does not have a coverage tag there either. Thus, we set coversNothing. | ||
* @coversNothing | ||
*/ | ||
public function test_get_users_in_context() { | ||
public function test_get_users_in_context(): void { | ||
$this->resetAfterTest(); | ||
|
||
$component = 'block_cohortspecifichtml'; | ||
|
@@ -419,7 +419,7 @@ public function test_get_users_in_context() { | |
* It is adopted from block_html and does not have a coverage tag there either. Thus, we set coversNothing. | ||
* @coversNothing | ||
*/ | ||
public function test_delete_data_for_users() { | ||
public function test_delete_data_for_users(): void { | ||
$this->resetAfterTest(); | ||
|
||
$component = 'block_cohortspecifichtml'; | ||
|