Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 34... Línea 34...
34
 * Unit tests for mod/assign/submission/onlinetext/locallib.php
34
 * Unit tests for mod/assign/submission/onlinetext/locallib.php
35
 *
35
 *
36
 * @copyright  2016 Cameron Ball
36
 * @copyright  2016 Cameron Ball
37
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 */
38
 */
39
class locallib_test extends \advanced_testcase {
39
final class locallib_test extends \advanced_testcase {
Línea 40... Línea 40...
40
 
40
 
41
    // Use the generator helper.
41
    // Use the generator helper.
Línea 42... Línea 42...
42
    use mod_assign_test_generator;
42
    use mod_assign_test_generator;
Línea 98... Línea 98...
98
    /**
98
    /**
99
     * Dataprovider for the test_submission_is_empty testcase
99
     * Dataprovider for the test_submission_is_empty testcase
100
     *
100
     *
101
     * @return array of testcases
101
     * @return array of testcases
102
     */
102
     */
103
    public function submission_is_empty_testcases() {
103
    public static function submission_is_empty_testcases(): array {
104
        return [
104
        return [
105
            'Empty submission string' => ['', true],
105
            'Empty submission string' => ['', true],
106
            'Empty submission null' => [null, true],
106
            'Empty submission null' => [null, true],
107
            'Value 0' => [0, false],
107
            'Value 0' => [0, false],
108
            'String 0' => ['0', false],
108
            'String 0' => ['0', false],