Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 29... Línea 29...
29
 * @category test
29
 * @category test
30
 * @copyright 2018 Jake Dallimore <jrhdallimore@gmail.com>
30
 * @copyright 2018 Jake Dallimore <jrhdallimore@gmail.com>
31
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
31
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
32
 * @covers \core_message\helper
32
 * @covers \core_message\helper
33
 */
33
 */
34
class helper_test extends \advanced_testcase {
34
final class helper_test extends \advanced_testcase {
Línea 35... Línea 35...
35
 
35
 
-
 
36
    public function setUp(): void {
36
    public function setUp(): void {
37
        parent::setUp();
37
        $this->resetAfterTest(true);
38
        $this->resetAfterTest(true);
Línea 38... Línea 39...
38
    }
39
    }
39
 
40
 
Línea 226... Línea 227...
226
    /**
227
    /**
227
     * Data provider for the test_prevent_unclosed_html_tags_data tests.
228
     * Data provider for the test_prevent_unclosed_html_tags_data tests.
228
     *
229
     *
229
     * @return  array
230
     * @return  array
230
     */
231
     */
231
    public function prevent_unclosed_html_tags_data(): array {
232
    public static function prevent_unclosed_html_tags_data(): array {
232
        return [
233
        return [
233
            'Prevent unclosed html elements' => [
234
            'Prevent unclosed html elements' => [
234
                '<h1>Title</h1><p>Paragraph</p><b>Bold', '<h1>Title</h1><p>Paragraph</p><b>Bold</b>', true
235
                '<h1>Title</h1><p>Paragraph</p><b>Bold', '<h1>Title</h1><p>Paragraph</p><b>Bold</b>', true
235
            ],
236
            ],
236
            'Prevent unclosed html elements including comments' => [
237
            'Prevent unclosed html elements including comments' => [