1<?php
2/**
3 * @group plugin_latexport
4 * @group plugins
5 */
6require_once DOKU_PLUGIN . 'latexport/_test/decorator_mock.php';
7
8class decorator_test extends DokuWikiTest {
9
10    protected $pluginsEnabled = array('latexport', 'mathjax');
11	private $decoratorMock;
12	private $decorator;
13
14    public static function setUpBeforeClass(){
15        parent::setUpBeforeClass();
16	}
17
18	public function setUp() {
19		$this->decoratorMock = new DecoratorMock();
20		$this->decorator = new Decorator($this->decoratorMock);
21    }
22
23    public function testDocumentStartPropagatesRecursionLevel() {
24		$this->decorator->document_start("xx", 3);
25		$this->assertEquals(3, $this->decoratorMock->recursionLevel, "Recursion level");
26    }
27}
28?>