summaryrefslogtreecommitdiff
path: root/_test/cases/inc/common_pagetemplate.test.php
blob: ecba0f9663fdba6f18c070729451070a77830ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

require_once DOKU_INC.'inc/common.php';

class common_pagetemplate_test extends UnitTestCase {

    function test_none(){
        global $conf;
        $conf['sepchar'] = '-';
        $data = array(
            'id' => 'page-id-long',
            'tpl' => '"@PAGE@" "@!PAGE@" "@!!PAGE@" "@!PAGE!@"',
        );
        $old = error_reporting(E_ALL & ~E_NOTICE);
        $this->assertEqual(parsePageTemplate($data), '"page id long" "Page id long" "Page Id Long" "PAGE ID LONG"');
        error_reporting($old);
    }
}
//Setup VIM: ex: et ts=4 enc=utf-8 :