Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 30... Línea 30...
30
 * @package     core_reportbuilder
30
 * @package     core_reportbuilder
31
 * @covers      \core_reportbuilder\local\report\action
31
 * @covers      \core_reportbuilder\local\report\action
32
 * @copyright   2021 Paul Holden <paulh@moodle.com>
32
 * @copyright   2021 Paul Holden <paulh@moodle.com>
33
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34
 */
34
 */
35
class action_test extends advanced_testcase {
35
final class action_test extends advanced_testcase {
Línea 36... Línea 36...
36
 
36
 
37
    /**
37
    /**
38
     * Test adding a callback that returns true
38
     * Test adding a callback that returns true
39
     */
39
     */
Línea 61... Línea 61...
61
    /**
61
    /**
62
     * Data provider for {@see test_action_title}
62
     * Data provider for {@see test_action_title}
63
     *
63
     *
64
     * @return array[]
64
     * @return array[]
65
     */
65
     */
66
    public function action_title_provider(): array {
66
    public static function action_title_provider(): array {
67
        $title = new lang_string('yes');
67
        $title = new lang_string('yes');
68
        return [
68
        return [
69
            'Specified via constructor' => ['', [], $title],
69
            'Specified via constructor' => ['', [], $title],
70
            'Specified via pix icon' => [(string) $title],
70
            'Specified via pix icon' => [(string) $title],
71
            'Specified via attributes' => ['', ['title' => $title]],
71
            'Specified via attributes' => ['', ['title' => $title]],