| @@ 41-64 (lines=24) @@ | ||
| 38 | dbglog("\nset up class syntax_plugin_backlinks_test"); |
|
| 39 | } |
|
| 40 | ||
| 41 | function setUp() { |
|
| 42 | parent::setUp(); |
|
| 43 | ||
| 44 | global $conf; |
|
| 45 | $conf['allowdebug'] = 1; |
|
| 46 | $conf['cachetime'] = -1; |
|
| 47 | ||
| 48 | $data = array(); |
|
| 49 | search($data, $conf['datadir'], 'search_allpages', array('skipacl' => true)); |
|
| 50 | ||
| 51 | //dbglog($data, "pages for indexing"); |
|
| 52 | ||
| 53 | $verbose = false; |
|
| 54 | $force = false; |
|
| 55 | foreach($data as $val) { |
|
| 56 | idx_addPage($val['id'], $verbose, $force); |
|
| 57 | } |
|
| 58 | //idx_addPage('bob_ross_says', $verbose, $force); |
|
| 59 | //idx_addPage('link', $verbose, $force); |
|
| 60 | //idx_addPage('backlinks_syntax', $verbose, $force); |
|
| 61 | if($conf['allowdebug']) { |
|
| 62 | touch(DOKU_TMP_DATA.'cache/debug.log'); |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| 66 | public function tearDown() { |
|
| 67 | parent::tearDown(); |
|
| @@ 41-62 (lines=22) @@ | ||
| 38 | dbglog("\nset up class syntax_plugin_backlinks_test"); |
|
| 39 | } |
|
| 40 | ||
| 41 | function setUp() { |
|
| 42 | parent::setUp(); |
|
| 43 | ||
| 44 | global $conf; |
|
| 45 | $conf['allowdebug'] = 1; |
|
| 46 | $conf['cachetime'] = -1; |
|
| 47 | ||
| 48 | $data = array(); |
|
| 49 | search($data, $conf['datadir'], 'search_allpages', array('skipacl' => true)); |
|
| 50 | ||
| 51 | //dbglog($data, "pages for indexing"); |
|
| 52 | ||
| 53 | $verbose = false; |
|
| 54 | $force = false; |
|
| 55 | foreach($data as $val) { |
|
| 56 | idx_addPage($val['id'], $verbose, $force); |
|
| 57 | } |
|
| 58 | ||
| 59 | if($conf['allowdebug']) { |
|
| 60 | touch(DOKU_TMP_DATA.'cache/debug.log'); |
|
| 61 | } |
|
| 62 | } |
|
| 63 | ||
| 64 | public function tearDown() { |
|
| 65 | parent::tearDown(); |
|
| @@ 41-62 (lines=22) @@ | ||
| 38 | dbglog("\nset up class syntax_plugin_backlinks_test"); |
|
| 39 | } |
|
| 40 | ||
| 41 | function setUp() { |
|
| 42 | parent::setUp(); |
|
| 43 | ||
| 44 | global $conf; |
|
| 45 | $conf['allowdebug'] = 1; |
|
| 46 | $conf['cachetime'] = -1; |
|
| 47 | ||
| 48 | $data = array(); |
|
| 49 | search($data, $conf['datadir'], 'search_allpages', array('skipacl' => true)); |
|
| 50 | ||
| 51 | //dbglog($data, "pages for indexing"); |
|
| 52 | ||
| 53 | $verbose = false; |
|
| 54 | $force = false; |
|
| 55 | foreach($data as $val) { |
|
| 56 | idx_addPage($val['id'], $verbose, $force); |
|
| 57 | } |
|
| 58 | ||
| 59 | if($conf['allowdebug']) { |
|
| 60 | touch(DOKU_TMP_DATA.'cache/debug.log'); |
|
| 61 | } |
|
| 62 | } |
|
| 63 | ||
| 64 | public function tearDown() { |
|
| 65 | parent::tearDown(); |
|