• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..13-Sep-2019-

data/H13-Sep-2019-629447

README.mdH A D12-Jul-20191.1 KiB3728

blockquote.test.phpH A D12-Jul-20192.7 KiB8557

button.test.phpH A D12-Jul-20191.8 KiB7038

card.test.phpH A D12-Jul-20193.5 KiB8147

cardcolumns.test.phpH A D12-Jul-20191.6 KiB6135

cite.test.phpH A D12-Jul-20191 KiB4220

general.test.phpH A D12-Jul-20192.9 KiB10968

heading.test.phpH A D12-Jul-20191.5 KiB6333

js.test.phpH A D12-Jul-20191.6 KiB6230

math.test.phpH A D12-Jul-20192.8 KiB9857

related.test.phpH A D12-Jul-20196.6 KiB181104

webcomponent.test.phpH A D12-Jul-2019699 3318

README.md

1# Test
2
3## Data Directory
4
5The [data](data) folder contains pages and images that are
6used for a visual control.
7
8There is a [script called copy_visuals](../copy_visuals.cmd)
9to copy this files from the dokuwiki data directory to this test directory.
10
11
12## Features
13
14TODO ? Use the visual page to test ?
15
16Example in a setUp function
17
18```php
19const DOKU_DATA_DIR = '/dokudata/pages';
20const DOKU_CACHE_DIR = '/dokudata/cache';
21
22// Otherwise the page are created in a tmp dir
23// ie C:\Users\gerard\AppData\Local\Temp/dwtests-1550072121.2716/data/
24// and we cannot visualize them
25// This is not on the savedir conf value level because it has no effect on the datadir value
26$conf['datadir'] = getcwd() . self::DOKU_DATA_DIR;
27// Create the dir
28if (!file_exists($conf['datadir'])) {
29    mkdir($conf['datadir'], $mode = 0777, $recursive = true);
30}
31$conf['cachetime'] = -1;
32$conf['allowdebug'] = 1; // log in cachedir+debug.log
33$conf['cachedir'] = getcwd() . self::DOKU_CACHE_DIR;
34if (!file_exists($conf['cachedir'])) {
35    mkdir($conf['cachedir'], $mode = 0777, $recursive = true);
36}
37```