1<?php
2
3namespace dokuwiki\plugin\struct\test;
4
5use dokuwiki\plugin\struct\types\Wiki;
6
7/**
8 * Testing the Wiki Type
9 *
10 * @group plugin_struct
11 * @group plugins
12 */
13class Type_Wiki_struct_test extends StructTest {
14
15    /**
16     * Provides failing validation data
17     *
18     * @return array
19     */
20    public function validateProvider() {
21        return array(
22            array("  * hi\n  * ho", "  * hi\n  * ho", '')
23        );
24    }
25
26    /**
27     * @dataProvider validateProvider
28     */
29    public function test_validate($value, $expected_validated_result, $msg) {
30        $wiki = new Wiki();
31        $actual_validated_result = $wiki->validate($value);
32        $this->assertEquals($expected_validated_result, $actual_validated_result, $msg);
33    }
34
35}
36