Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 37... Línea 37...
37
 *
37
 *
38
 * @package    core_message
38
 * @package    core_message
39
 * @copyright  2018 Mark Nelson <markn@moodle.com>
39
 * @copyright  2018 Mark Nelson <markn@moodle.com>
40
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
40
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
41
 */
41
 */
42
class provider_test extends \core_privacy\tests\provider_testcase {
42
final class provider_test extends \core_privacy\tests\provider_testcase {
Línea 43... Línea 43...
43
 
43
 
44
    /**
44
    /**
45
     * Setup.
45
     * Setup.
46
     */
46
     */
Línea 2831... Línea 2831...
2831
     * @param int $timecreated
2831
     * @param int $timecreated
2832
     * @param bool $read Do we want to mark the message as read?
2832
     * @param bool $read Do we want to mark the message as read?
2833
     * @return int The id of the message
2833
     * @return int The id of the message
2834
     * @throws dml_exception
2834
     * @throws dml_exception
2835
     */
2835
     */
2836
    private function create_message(int $useridfrom, int $useridto, int $timecreated = null, bool $read = false) {
2836
    private function create_message(int $useridfrom, int $useridto, ?int $timecreated = null, bool $read = false) {
2837
        global $DB;
2837
        global $DB;
Línea 2838... Línea 2838...
2838
 
2838
 
Línea 2839... Línea 2839...
2839
        static $i = 1;
2839
        static $i = 1;
Línea 2882... Línea 2882...
2882
     * @param int|null $timecreated The time the notification was created
2882
     * @param int|null $timecreated The time the notification was created
2883
     * @param int|null $timeread The time the notification was read, null if it hasn't been.
2883
     * @param int|null $timeread The time the notification was read, null if it hasn't been.
2884
     * @return int The id of the notification
2884
     * @return int The id of the notification
2885
     * @throws dml_exception
2885
     * @throws dml_exception
2886
     */
2886
     */
2887
    private function create_notification(int $useridfrom, int $useridto, int $timecreated = null, int $timeread = null) {
2887
    private function create_notification(int $useridfrom, int $useridto, ?int $timecreated = null, ?int $timeread = null) {
2888
        global $DB;
2888
        global $DB;
Línea 2889... Línea 2889...
2889
 
2889
 
Línea 2890... Línea 2890...
2890
        static $i = 1;
2890
        static $i = 1;