Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 104... Línea 104...
104
 
104
 
105
    public function test_get_invalid_server_filter(): void {
105
    public function test_get_invalid_server_filter(): void {
106
        \core\di::set(
106
        \core\di::set(
107
            \core\hook\manager::class,
107
            \core\hook\manager::class,
108
            \core\hook\manager::phpunit_get_instance([
108
            \core\hook\manager::phpunit_get_instance([
109
                'test_plugin1' => __DIR__ . '/fixtures/invalid_serverside_hook_fixture.php',
109
                'test_plugin1' => self::get_fixture_path(__NAMESPACE__, 'invalid_serverside_hook_fixture.php'),
110
            ]),
110
            ]),
Línea 111... Línea 111...
111
        );
111
        );
112
 
112
 
Línea 116... Línea 116...
116
 
116
 
117
    public function test_clientside_filter_for_serverside_hook(): void {
117
    public function test_clientside_filter_for_serverside_hook(): void {
118
        \core\di::set(
118
        \core\di::set(
119
            \core\hook\manager::class,
119
            \core\hook\manager::class,
120
            \core\hook\manager::phpunit_get_instance([
120
            \core\hook\manager::phpunit_get_instance([
121
                'test_plugin1' => __DIR__ . '/fixtures/clientside_filter_for_serverside_hook.php',
121
                'test_plugin1' => self::get_fixture_path(__NAMESPACE__, 'clientside_filter_for_serverside_hook.php'),
122
            ]),
122
            ]),
Línea 123... Línea 123...
123
        );
123
        );
124
 
124
 
Línea 128... Línea 128...
128
 
128
 
129
    public function test_serverside_filter_for_clientside_hook(): void {
129
    public function test_serverside_filter_for_clientside_hook(): void {
130
        \core\di::set(
130
        \core\di::set(
131
            \core\hook\manager::class,
131
            \core\hook\manager::class,
132
            \core\hook\manager::phpunit_get_instance([
132
            \core\hook\manager::phpunit_get_instance([
133
                'test_plugin1' => __DIR__ . '/fixtures/serverside_filter_for_clientside_hook.php',
133
                'test_plugin1' => self::get_fixture_path(__NAMESPACE__, 'serverside_filter_for_clientside_hook.php'),
134
            ]),
134
            ]),
Línea 135... Línea 135...
135
        );
135
        );
136
 
136
 
Línea 140... Línea 140...
140
 
140
 
141
    public function test_filter_hooks(): void {
141
    public function test_filter_hooks(): void {
142
        \core\di::set(
142
        \core\di::set(
143
            \core\hook\manager::class,
143
            \core\hook\manager::class,
144
            \core\hook\manager::phpunit_get_instance([
144
            \core\hook\manager::phpunit_get_instance([
145
                'test_plugin1' => __DIR__ . '/fixtures/hook_fixtures.php',
145
                'test_plugin1' => self::get_fixture_path(__NAMESPACE__, 'hook_fixtures.php'),
146
            ]),
146
            ]),
Línea 147... Línea 147...
147
        );
147
        );
148
 
148
 
Línea 173... Línea 173...
173
 
173
 
174
    public function test_get_clientside_filter_module_names(): void {
174
    public function test_get_clientside_filter_module_names(): void {
175
        \core\di::set(
175
        \core\di::set(
176
            \core\hook\manager::class,
176
            \core\hook\manager::class,
177
            \core\hook\manager::phpunit_get_instance([
177
            \core\hook\manager::phpunit_get_instance([
178
                'test_plugin1' => __DIR__ . '/fixtures/invalid_clientside_hook_fixture.php',
178
                'test_plugin1' => self::get_fixture_path(__NAMESPACE__, 'invalid_clientside_hook_fixture.php'),
179
            ]),
179
            ]),
Línea 180... Línea 180...
180
        );
180
        );