-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #855: fix namespace for all tests
- Loading branch information
Showing
15 changed files
with
46 additions
and
116 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 |
---|---|---|
|
@@ -14,23 +14,17 @@ | |
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* Testcase class for group_rule class. | ||
* | ||
* @package auth_saml2 | ||
* @author Dmitrii Metelkin <[email protected]> | ||
* @copyright Catalyst IT | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
namespace auth_saml2; | ||
|
||
/** | ||
* Testcase class for group_rule class. | ||
* | ||
* @package auth_saml2 | ||
* @author Dmitrii Metelkin <[email protected]> | ||
* @copyright Catalyst IT | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
final class group_rule_test extends advanced_testcase { | ||
final class group_rule_test extends \advanced_testcase { | ||
|
||
/** | ||
* Test we can get list of rules from config string. | ||
|
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 |
---|---|---|
|
@@ -14,27 +14,21 @@ | |
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* SAML2 SP metadata tests. | ||
* | ||
* @package auth_saml2 | ||
* @copyright Brendan Heywood <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
namespace auth_saml2; | ||
|
||
use auth_saml2\admin\saml2_settings; | ||
use auth_saml2\admin\setting_idpmetadata; | ||
use SimpleXMLElement; | ||
|
||
defined('MOODLE_INTERNAL') || die(); | ||
require_once(__DIR__ . '/../locallib.php'); | ||
|
||
/** | ||
* Tests for SAML | ||
* | ||
* @package auth_saml2 | ||
* @copyright Brendan Heywood <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
final class locallib_test extends advanced_testcase { | ||
final class locallib_test extends \advanced_testcase { | ||
/** | ||
* Regression test for Issue 132. | ||
*/ | ||
|
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
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
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
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 |
---|---|---|
|
@@ -14,16 +14,7 @@ | |
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* Test for user extractor class. | ||
* | ||
* @package auth_saml2 | ||
* @author Dmitrii Metelkin <[email protected]> | ||
* @copyright 2021 Catalyst IT | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
use auth_saml2\user_extractor; | ||
namespace auth_saml2; | ||
|
||
/** | ||
* Test for user extractor class. | ||
|
@@ -33,7 +24,7 @@ | |
* @copyright 2021 Catalyst IT | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
final class user_extractor_test extends advanced_testcase { | ||
final class user_extractor_test extends \advanced_testcase { | ||
|
||
/** | ||
* A helper function to create a custom profile field. | ||
|
@@ -44,7 +35,7 @@ final class user_extractor_test extends advanced_testcase { | |
* | ||
* @return \stdClass | ||
*/ | ||
protected function add_user_profile_field(string $shortname, string $datatype, bool $unique = false): stdClass { | ||
protected function add_user_profile_field(string $shortname, string $datatype, bool $unique = false): \stdClass { | ||
global $DB; | ||
|
||
// Create a new profile field. | ||
|
Oops, something went wrong.