Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 23... Línea 23...
23
 *
23
 *
24
 * @package    core_calendar
24
 * @package    core_calendar
25
 * @copyright 2017 Cameron Ball <cameron@cameron1729.xyz>
25
 * @copyright 2017 Cameron Ball <cameron@cameron1729.xyz>
26
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 */
27
 */
28
class action_test extends \advanced_testcase {
28
final class action_test extends \advanced_testcase {
29
    /**
29
    /**
30
     * Test action class getters.
30
     * Test action class getters.
31
     *
31
     *
32
     * @dataProvider getters_testcases()
32
     * @dataProvider getters_testcases
33
     * @param array $constructorparams Associative array of constructor parameters.
33
     * @param array $constructorparams Associative array of constructor parameters.
34
     */
34
     */
35
    public function test_getters($constructorparams): void {
35
    public function test_getters($constructorparams): void {
36
        $action = new action(
36
        $action = new action(
37
            $constructorparams['name'],
37
            $constructorparams['name'],
Línea 50... Línea 50...
50
    }
50
    }
Línea 51... Línea 51...
51
 
51
 
52
    /**
52
    /**
53
     * Test cases for getters test.
53
     * Test cases for getters test.
54
     */
54
     */
55
    public function getters_testcases() {
55
    public static function getters_testcases(): array {
56
        return [
56
        return [
57
            'Dataset 1' => [
57
            'Dataset 1' => [
58
                'constructorparams' => [
58
                'constructorparams' => [
59
                    'name' => 'Hello',
59
                    'name' => 'Hello',