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    /**
17     * Provides failing validation data
18     *
19     * @return array
20     */
21    public function validateProvider()
22    {
23        return array(
24            array("  * hi\n  * ho", "  * hi\n  * ho", '')
25        );
26    }
27
28    /**
29     * @dataProvider validateProvider
30     */
31    public function test_validate($value, $expected_validated_result, $msg)
32    {
33        $wiki = new Wiki();
34        $actual_validated_result = $wiki->validate($value);
35        $this->assertEquals($expected_validated_result, $actual_validated_result, $msg);
36    }
37
38}
39