Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 40... Línea 40...
40
 * @coversDefaultClass \mod_lti\local\ltiopenid\jwks_helper
40
 * @coversDefaultClass \mod_lti\local\ltiopenid\jwks_helper
41
 * @package    mod_lti
41
 * @package    mod_lti
42
 * @copyright  2023 Jake Dallimore <jrhdallimore@gmail.com>
42
 * @copyright  2023 Jake Dallimore <jrhdallimore@gmail.com>
43
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
43
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
44
 */
44
 */
45
class jwks_helper_test extends \basic_testcase {
45
final class jwks_helper_test extends \basic_testcase {
Línea 46... Línea 46...
46
 
46
 
47
    /**
47
    /**
48
     * Test the fix_jwks_alg method with a range of inputs.
48
     * Test the fix_jwks_alg method with a range of inputs.
49
     *
49
     *
Línea 64... Línea 64...
64
 
64
 
65
    /**
65
    /**
66
     * Provider for test_fix_jwks_alg.
66
     * Provider for test_fix_jwks_alg.
67
     * @return array test data.
67
     * @return array test data.
68
     */
68
     */
69
    public function jwks_alg_provider(): array {
69
    public static function jwks_alg_provider(): array {
70
        return [
70
        return [
71
            // Algs already present, so no changes to input key array.
71
            // Algs already present, so no changes to input key array.
72
            'All JWKS keys have algs set' => [
72
            'All JWKS keys have algs set' => [
73
                'jwks' => [
73
                'jwks' => [