Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 29... Línea 29...
29
class primary_extend_test extends \advanced_testcase {
29
class primary_extend_test extends \advanced_testcase {
30
    /**
30
    /**
31
     * Test stoppable_trait.
31
     * Test stoppable_trait.
32
     * @covers ::stop_propagation
32
     * @covers ::stop_propagation
33
     */
33
     */
34
    public function test_stop_propagation() {
34
    public function test_stop_propagation(): void {
35
        global $PAGE;
35
        global $PAGE;
36
        $this->resetAfterTest();
36
        $this->resetAfterTest();
Línea 37... Línea 37...
37
 
37
 
38
        $PAGE = new \moodle_page();
38
        $PAGE = new \moodle_page();
Línea 49... Línea 49...
49
 
49
 
50
    /**
50
    /**
51
     * Test hook is triggered when initialising primary navigation menu.
51
     * Test hook is triggered when initialising primary navigation menu.
52
     * @covers \core\navigation\views\primary::initialise
52
     * @covers \core\navigation\views\primary::initialise
53
     */
53
     */
54
    public function test_trigggering() {
54
    public function test_trigggering(): void {
55
        global $PAGE;
55
        global $PAGE;
Línea 56... Línea 56...
56
        $this->resetAfterTest();
56
        $this->resetAfterTest();
57
 
57
 
Línea 77... Línea 77...
77
 
77
 
78
    /**
78
    /**
79
     * Verify that nothing except this hook modifies the primary menu.
79
     * Verify that nothing except this hook modifies the primary menu.
80
     * @covers \core\navigation\views\primary::initialise
80
     * @covers \core\navigation\views\primary::initialise
81
     */
81
     */
82
    public function test_unsupported_hacks() {
82
    public function test_unsupported_hacks(): void {
83
        global $PAGE;
83
        global $PAGE;
Línea 84... Línea 84...
84
        $this->resetAfterTest();
84
        $this->resetAfterTest();
85
 
85
 
Línea 105... Línea 105...
105
 
105
 
106
    /**
106
    /**
107
     * Test adding of primary menu items via hook.
107
     * Test adding of primary menu items via hook.
108
     * @covers \core\navigation\views\primary::initialise
108
     * @covers \core\navigation\views\primary::initialise
109
     */
109
     */
110
    public function test_primary_menu_extending() {
110
    public function test_primary_menu_extending(): void {
111
        global $PAGE;
111
        global $PAGE;
Línea 112... Línea 112...
112
        $this->resetAfterTest();
112
        $this->resetAfterTest();
113
 
113
 
Línea 135... Línea 135...
135
 
135
 
136
    /**
136
    /**
137
     * Test replacing of the whole primary menu.
137
     * Test replacing of the whole primary menu.
138
     * @covers \core\navigation\views\primary::initialise
138
     * @covers \core\navigation\views\primary::initialise
139
     */
139
     */
140
    public function test_primary_menu_replacing() {
140
    public function test_primary_menu_replacing(): void {
141
        global $PAGE;
141
        global $PAGE;
Línea 142... Línea 142...
142
        $this->resetAfterTest();
142
        $this->resetAfterTest();
143
 
143