Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 25... Línea 25...
25
 * @category   phpunit
25
 * @category   phpunit
26
 * @copyright  2012 Petr Skoda {@link http://skodak.org}
26
 * @copyright  2012 Petr Skoda {@link http://skodak.org}
27
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 * @coversDefaultClass \mod_data_generator
28
 * @coversDefaultClass \mod_data_generator
29
 */
29
 */
30
class generator_test extends \advanced_testcase {
30
final class generator_test extends \advanced_testcase {
31
    /**
31
    /**
32
     * @covers ::create_instance
32
     * @covers ::create_instance
33
     */
33
     */
34
    public function test_generator(): void {
34
    public function test_generator(): void {
35
        global $DB;
35
        global $DB;
Línea 298... Línea 298...
298
    /**
298
    /**
299
     * Data provider for test_create_preset().
299
     * Data provider for test_create_preset().
300
     *
300
     *
301
     * @return array
301
     * @return array
302
     */
302
     */
303
    public function create_preset_provider(): array {
303
    public static function create_preset_provider(): array {
304
        return [
304
        return [
305
            'Create using the default configuration' => [
305
            'Create using the default configuration' => [
306
                'record' => null,
306
                'record' => null,
307
            ],
307
            ],
308
            'Create with a given name but no description' => [
308
            'Create with a given name but no description' => [