Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 64... Línea 64...
64
    }
64
    }
Línea 65... Línea 65...
65
 
65
 
66
    /**
66
    /**
67
     * Test default values.
67
     * Test default values.
68
     */
68
     */
69
    public function test_default_values() {
69
    public function test_default_values(): void {
Línea 70... Línea 70...
70
        $category = new \core_search\area_category('test_name', 'test_visiblename');
70
        $category = new \core_search\area_category('test_name', 'test_visiblename');
71
 
71
 
72
        $this->assertEquals('test_name', $category->get_name());
72
        $this->assertEquals('test_name', $category->get_name());
Línea 76... Línea 76...
76
    }
76
    }
Línea 77... Línea 77...
77
 
77
 
78
    /**
78
    /**
79
     * Test that all get functions work as expected.
79
     * Test that all get functions work as expected.
80
     */
80
     */
81
    public function test_getters() {
81
    public function test_getters(): void {
Línea 82... Línea 82...
82
        $category = new \core_search\area_category('test_name', 'test_visiblename', 4, $this->get_areas());
82
        $category = new \core_search\area_category('test_name', 'test_visiblename', 4, $this->get_areas());
83
 
83
 
84
        $this->assertEquals('test_name', $category->get_name());
84
        $this->assertEquals('test_name', $category->get_name());
Línea 93... Línea 93...
93
    }
93
    }
Línea 94... Línea 94...
94
 
94
 
95
    /**
95
    /**
96
     * Test that a list of areas could be set correctly.
96
     * Test that a list of areas could be set correctly.
97
     */
97
     */
98
    public function test_list_of_areas_could_be_set() {
98
    public function test_list_of_areas_could_be_set(): void {
99
        $category = new \core_search\area_category('test_name', 'test_visiblename');
99
        $category = new \core_search\area_category('test_name', 'test_visiblename');
Línea 100... Línea 100...
100
        $this->assertEquals([], $category->get_areas());
100
        $this->assertEquals([], $category->get_areas());