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
 * @category  test
40
 * @category  test
41
 * @copyright 2014 The Open University
41
 * @copyright 2014 The Open University
42
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
42
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
43
 * @covers \question_engine_data_mapper
43
 * @covers \question_engine_data_mapper
44
 */
44
 */
45
class datalib_test extends \qbehaviour_walkthrough_test_base {
45
final class datalib_test extends \qbehaviour_walkthrough_test_base {
Línea 46... Línea 46...
46
 
46
 
47
    /**
47
    /**
48
     * We create two usages, each with two questions, a short-answer marked
48
     * We create two usages, each with two questions, a short-answer marked
49
     * out of 5, and and essay marked out of 10. We just start these attempts.
49
     * out of 5, and and essay marked out of 10. We just start these attempts.
Línea 282... Línea 282...
282
    /**
282
    /**
283
     * Test cases for {@see test_get_file_area_name()}.
283
     * Test cases for {@see test_get_file_area_name()}.
284
     *
284
     *
285
     * @return array test cases
285
     * @return array test cases
286
     */
286
     */
287
    public function get_file_area_name_cases(): array {
287
    public static function get_file_area_name_cases(): array {
288
        return [
288
        return [
289
            'simple variable' => ['response_attachments', 'response_attachments'],
289
            'simple variable' => ['response_attachments', 'response_attachments'],
290
            'behaviour variable' => ['response_5:answer', 'response_5answer'],
290
            'behaviour variable' => ['response_5:answer', 'response_5answer'],
291
            'variable with special character' => ['response_5:answer', 'response_5answer'],
291
            'variable with special character' => ['response_5:answer', 'response_5answer'],
292
            'multiple underscores in different places' => ['response_weird____variable__name', 'response_weird_variable_name'],
292
            'multiple underscores in different places' => ['response_weird____variable__name', 'response_weird_variable_name'],