Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 46... Línea 46...
46
     * Test the course category viewed.
46
     * Test the course category viewed.
47
     *
47
     *
48
     * There is no external API for viewing a category, so the unit test will simply
48
     * There is no external API for viewing a category, so the unit test will simply
49
     * create and trigger the event and ensure data is returned as expected.
49
     * create and trigger the event and ensure data is returned as expected.
50
     */
50
     */
51
    public function test_course_category_viewed_event() {
51
    public function test_course_category_viewed_event(): void {
Línea 52... Línea 52...
52
 
52
 
53
        // Create a category.
53
        // Create a category.
Línea 54... Línea 54...
54
        $category = $this->getDataGenerator()->create_category();
54
        $category = $this->getDataGenerator()->create_category();
Línea 78... Línea 78...
78
     * Test the course information viewed.
78
     * Test the course information viewed.
79
     *
79
     *
80
     * There is no external API for viewing course information so the unit test will simply
80
     * There is no external API for viewing course information so the unit test will simply
81
     * create and trigger the event and ensure data is returned as expected.
81
     * create and trigger the event and ensure data is returned as expected.
82
     */
82
     */
83
    public function test_course_information_viewed_event() {
83
    public function test_course_information_viewed_event(): void {
Línea 84... Línea 84...
84
 
84
 
85
        // Create a course.
85
        // Create a course.
86
        $data = new \stdClass();
86
        $data = new \stdClass();
Línea 111... Línea 111...
111
     * Test the courses searched.
111
     * Test the courses searched.
112
     *
112
     *
113
     * There is no external API for viewing course information so the unit test will simply
113
     * There is no external API for viewing course information so the unit test will simply
114
     * create and trigger the event and ensure data is returned as expected.
114
     * create and trigger the event and ensure data is returned as expected.
115
     */
115
     */
116
    public function test_courses_searched_event() {
116
    public function test_courses_searched_event(): void {
Línea 117... Línea 117...
117
 
117
 
118
        // Trigger an event: courses searched.
118
        // Trigger an event: courses searched.
119
        $search = 'mysearch';
119
        $search = 'mysearch';
120
        $eventparams = array(
120
        $eventparams = array(