Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 37... Línea 37...
37
 
37
 
38
    public function setUp(): void {
38
    public function setUp(): void {
39
        $this->resetAfterTest();
39
        $this->resetAfterTest();
Línea 40... Línea 40...
40
    }
40
    }
41
 
41
 
42
    public function test_book_printed() {
42
    public function test_book_printed(): void {
Línea 43... Línea 43...
43
        // There is no proper API to call to test the event, so what we are
43
        // There is no proper API to call to test the event, so what we are
44
        // doing here is simply making sure that the events returns the right information.
44
        // doing here is simply making sure that the events returns the right information.
Línea 61... Línea 61...
61
        $this->assertEquals(\context_module::instance($book->cmid), $event->get_context());
61
        $this->assertEquals(\context_module::instance($book->cmid), $event->get_context());
62
        $this->assertEquals($book->id, $event->objectid);
62
        $this->assertEquals($book->id, $event->objectid);
63
    }
63
    }
Línea 64... Línea 64...
64
 
64
 
65
 
65
 
66
    public function test_chapter_printed() {
66
    public function test_chapter_printed(): void {
Línea 67... Línea 67...
67
        // There is no proper API to call to test the event, so what we are
67
        // There is no proper API to call to test the event, so what we are
68
        // doing here is simply making sure that the events returns the right information.
68
        // doing here is simply making sure that the events returns the right information.