Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class renderer_plugin_prosemirror_test extends DokuWikiTest |
||
10 | { |
||
11 | |||
12 | protected $pluginsEnabled = ['prosemirror', 'wrap']; |
||
13 | |||
14 | /** |
||
15 | * @dataProvider rendererProvider |
||
16 | * |
||
17 | * @param string $dokuwikiMarkup |
||
18 | * @param string $expectedJSON |
||
19 | * @param string $msg |
||
20 | */ |
||
21 | public function test_renderer($dokuwikiMarkup, $expectedJSON, $msg) |
||
22 | { |
||
23 | global $ID; |
||
24 | $ID = 'wiki:syntax'; |
||
25 | $instructions = p_get_instructions($dokuwikiMarkup); |
||
26 | $doc = p_render('prosemirror', $instructions, $info); |
||
|
|||
27 | $this->assertJsonStringEqualsJsonString($expectedJSON, $doc, $msg); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return array |
||
32 | */ |
||
33 | public function rendererProvider() |
||
46 | } |
||
47 | } |
||
48 |