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
 * @package    mod_lti
40
 * @package    mod_lti
41
 * @copyright  2020 Claude Vervoort, Cengage
41
 * @copyright  2020 Claude Vervoort, Cengage
42
 * @author     Claude Vervoort
42
 * @author     Claude Vervoort
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 registration_test extends \advanced_testcase {
45
final class registration_test extends \advanced_testcase {
Línea 46... Línea 46...
46
 
46
 
47
    /**
47
    /**
48
     * @var string A has-it-all client registration.
48
     * @var string A has-it-all client registration.
49
     */
49
     */
Línea 405... Línea 405...
405
        $toolproxy['id'] = 9;
405
        $toolproxy['id'] = 9;
406
        $toolproxy['guid'] = 'lti2guidtest';
406
        $toolproxy['guid'] = 'lti2guidtest';
407
        $toolproxy['secret'] = 'peM7YDx420bo';
407
        $toolproxy['secret'] = 'peM7YDx420bo';
Línea 408... Línea 408...
408
 
408
 
409
        $reghelper = $this->getMockBuilder(registration_helper::class)
409
        $reghelper = $this->getMockBuilder(registration_helper::class)
410
            ->setMethods(['get_tool_proxy'])
410
            ->onlyMethods(['get_tool_proxy'])
411
            ->getMock();
411
            ->getMock();
412
        $map = [[$toolproxy['id'], $toolproxy]];
412
        $map = [[$toolproxy['id'], $toolproxy]];
413
        $reghelper->method('get_tool_proxy')
413
        $reghelper->method('get_tool_proxy')
414
            ->will($this->returnValueMap($map));
414
            ->will($this->returnValueMap($map));