Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 93... Línea 93...
93
    /**
93
    /**
94
     * Test items views are recorded
94
     * Test items views are recorded
95
     *
95
     *
96
     * When items events are triggered they are stored in the block_recentlyaccesseditems table.
96
     * When items events are triggered they are stored in the block_recentlyaccesseditems table.
97
     */
97
     */
98
    public function test_item_view_recorded_testcase() {
98
    public function test_item_view_recorded_testcase(): void {
99
        global $DB;
99
        global $DB;
Línea 100... Línea 100...
100
 
100
 
101
        // Empty table at the beggining.
101
        // Empty table at the beggining.
102
        $records = $DB->count_records($this->table, array());
102
        $records = $DB->count_records($this->table, array());
Línea 138... Línea 138...
138
    /**
138
    /**
139
     * Test removed items records are deleted.
139
     * Test removed items records are deleted.
140
     *
140
     *
141
     * When a course module is removed, the records associated in the block_recentlyaccesseditems table are deleted.
141
     * When a course module is removed, the records associated in the block_recentlyaccesseditems table are deleted.
142
     */
142
     */
143
    public function test_item_delete_record_testcase() {
143
    public function test_item_delete_record_testcase(): void {
144
        global $DB;
144
        global $DB;
Línea 145... Línea 145...
145
 
145
 
146
        // Empty table at the beggining.
146
        // Empty table at the beggining.
147
        $records = $DB->count_records($this->table, array());
147
        $records = $DB->count_records($this->table, array());