Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 183... Línea 183...
183
     * @param array $setup
183
     * @param array $setup
184
     * @param bool $removesectionnodes Whether to remove the section nodes with an associated action.
184
     * @param bool $removesectionnodes Whether to remove the section nodes with an associated action.
185
     * @param array $expected
185
     * @param array $expected
186
     * @throws \ReflectionException
186
     * @throws \ReflectionException
187
     */
187
     */
188
    public function test_remove_no_link_items(array $setup, bool $removesectionnodes, array $expected) {
188
    public function test_remove_no_link_items(array $setup, bool $removesectionnodes, array $expected): void {
189
        global $PAGE;
189
        global $PAGE;
Línea 190... Línea 190...
190
 
190
 
191
        $this->resetAfterTest();
191
        $this->resetAfterTest();
192
        // Unfortunate hack needed because people use global $PAGE around the place.
192
        // Unfortunate hack needed because people use global $PAGE around the place.
Línea 367... Línea 367...
367
     *
367
     *
368
     * @dataProvider remove_duplicate_items_provider
368
     * @dataProvider remove_duplicate_items_provider
369
     * @param array $navbarnodes The array containing the text and action of the nodes to be added to the navbar
369
     * @param array $navbarnodes The array containing the text and action of the nodes to be added to the navbar
370
     * @param array $expected The array containing the text of the expected navbar nodes
370
     * @param array $expected The array containing the text of the expected navbar nodes
371
     */
371
     */
372
    public function test_remove_duplicate_items(array $navbarnodes, array $expected) {
372
    public function test_remove_duplicate_items(array $navbarnodes, array $expected): void {
373
        $this->resetAfterTest();
373
        $this->resetAfterTest();
374
        $page = new \moodle_page();
374
        $page = new \moodle_page();
375
        $page->set_url('/');
375
        $page->set_url('/');
Línea 376... Línea 376...
376
 
376
 
Línea 486... Línea 486...
486
     * @param array $navmenunodes The array containing the text and action of the nodes to be added to the navigation menu
486
     * @param array $navmenunodes The array containing the text and action of the nodes to be added to the navigation menu
487
     * @param array $navbarnodes Array containing the text => action of the nodes to be added to the navbar
487
     * @param array $navbarnodes Array containing the text => action of the nodes to be added to the navbar
488
     * @param array $expected Array containing the text of the expected navbar nodes after the filtering
488
     * @param array $expected Array containing the text of the expected navbar nodes after the filtering
489
     */
489
     */
490
    public function test_remove_items_that_exist_in_navigation(string $navmenu, array $navmenunodes, array $navbarnodes,
490
    public function test_remove_items_that_exist_in_navigation(string $navmenu, array $navmenunodes, array $navbarnodes,
491
            array $expected) {
491
            array $expected): void {
492
        global $PAGE;
492
        global $PAGE;
Línea 493... Línea 493...
493
 
493
 
494
        // Unfortunate hack needed because people use global $PAGE around the place.
494
        // Unfortunate hack needed because people use global $PAGE around the place.
495
        $PAGE->set_url('/');
495
        $PAGE->set_url('/');