Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 32... Línea 32...
32
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 */
33
 */
34
class generator_test extends \advanced_testcase {
34
class generator_test extends \advanced_testcase {
Línea 35... Línea 35...
35
 
35
 
36
    /** Test create_instance method */
36
    /** Test create_instance method */
37
    public function test_create_instance() {
37
    public function test_create_instance(): void {
38
        global $DB;
38
        global $DB;
39
        $this->resetAfterTest();
39
        $this->resetAfterTest();
Línea 40... Línea 40...
40
        $this->setAdminUser();
40
        $this->setAdminUser();
Línea 54... Línea 54...
54
        $this->assertEquals(NOTES_STATE_DRAFT, $DB->get_field_select('post', 'publishstate', 'id = :id',
54
        $this->assertEquals(NOTES_STATE_DRAFT, $DB->get_field_select('post', 'publishstate', 'id = :id',
55
                array('id' => $note->id)));
55
                array('id' => $note->id)));
56
    }
56
    }
Línea 57... Línea 57...
57
 
57
 
58
    /** Test Exceptions thrown by create_instance method */
58
    /** Test Exceptions thrown by create_instance method */
59
    public function test_create_instance_exceptions() {
59
    public function test_create_instance_exceptions(): void {
Línea 60... Línea 60...
60
        $this->resetAfterTest();
60
        $this->resetAfterTest();
Línea 61... Línea 61...
61
 
61