Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | 13-Sep-2019 | - | ||||
data/ | H | 13-Sep-2019 | - | 629 | 447 | |
README.md | H A D | 12-Jul-2019 | 1.1 KiB | 37 | 28 | |
blockquote.test.php | H A D | 12-Jul-2019 | 2.7 KiB | 85 | 57 | |
button.test.php | H A D | 12-Jul-2019 | 1.8 KiB | 70 | 38 | |
card.test.php | H A D | 12-Jul-2019 | 3.5 KiB | 81 | 47 | |
cardcolumns.test.php | H A D | 12-Jul-2019 | 1.6 KiB | 61 | 35 | |
cite.test.php | H A D | 12-Jul-2019 | 1 KiB | 42 | 20 | |
general.test.php | H A D | 12-Jul-2019 | 2.9 KiB | 109 | 68 | |
heading.test.php | H A D | 12-Jul-2019 | 1.5 KiB | 63 | 33 | |
js.test.php | H A D | 12-Jul-2019 | 1.6 KiB | 62 | 30 | |
math.test.php | H A D | 12-Jul-2019 | 2.8 KiB | 98 | 57 | |
related.test.php | H A D | 12-Jul-2019 | 6.6 KiB | 181 | 104 | |
webcomponent.test.php | H A D | 12-Jul-2019 | 699 | 33 | 18 |
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```