Lines Matching refs:id

138         $id = 'aclpage';
140 $this->assertEquals(AUTH_UPLOAD, $this->remote->call('core.aclCheck', ['page' => $id]));
153 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', ['page' => $id]));
250 $id = 'wiki:syntax';
251 $file = wikiFN($id);
253 idx_addPage($id); //full text search depends on index
256 'id' => $id,
328 $id = 'pageversion';
329 $file = wikiFN($id);
331 saveWikiText($id, 'first version', 'first');
335 saveWikiText($id, 'second version', 'second');
340 $this->remote->call('core.getPage', ['page' => $id, 'rev' => 0]),
346 $this->remote->call('core.getPage', ['page' => $id, 'rev' => $rev1]),
352 $this->remote->call('core.getPage', ['page' => $id, 'rev' => $rev2]),
358 $this->remote->call('core.getPage', ['page' => $id, 'rev' => 1234]),
372 $id = 'htmltest';
373 $file = wikiFN($id);
380 saveWikiText($id, $content1, 'first');
384 saveWikiText($id, $content2, 'second');
389 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => 0]),
395 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => $rev1]),
401 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => $rev2]),
407 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => 1234]);
425 $id = 'pageinfo';
426 $file = wikiFN($id);
430 saveWikiText($id, 'first version', 'first');
434 saveWikiText($id, 'second version', 'second');
438 'id' => $id,
442 'title' => $id,
448 …$this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => 0, 'hash' => true, 'author' => tr…
453 'id' => $id,
457 'title' => $id,
458 'size' => filesize(wikiFN($id, $rev1)),
463 $this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => $rev1]),
468 'id' => $id,
472 'title' => $id,
473 'size' => filesize(wikiFN($id, $rev2)),
478 $this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => $rev2]),
484 $this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => 1234]);
504 $id = 'revpage';
505 $file = wikiFN($id);
510 saveWikiText($id, "rev$i", "rev$i");
515 $params = ['page' => $id, 'first' => 0];
526 $params = ['page' => $id, 'first' => 1]; // offset 1
538 $params = ['page' => $id, 'first' => 0]; // first page
546 $params = ['page' => $id, 'first' => $conf['recent']]; // second page
554 $params = ['page' => $id, 'first' => $conf['recent'] * 2]; // third page
659 $id = 'putpage';
663 'page' => $id,
669 $this->assertEquals($content, rawWiki($id));
673 'page' => $id,
677 $this->assertFileDoesNotExist(wikiFN($id));
692 $id = 'appendpage';
695 saveWikiText($id, $content, 'local');
698 'page' => $id,
702 $this->assertEquals($content . $morecontent, rawWiki($id));
712 $id = 'wiki:dokuwiki-128.png';
713 $file = mediaFN($id);
718 'id' => $id,
795 $id = 'wiki:dokuwiki-128.png';
796 $file = mediaFN($id);
801 $this->remote->call('core.getMedia', ['media' => $id])
806 $this->remote->call('core.getMedia', ['media' => $id, 'rev' => 1234]);
825 $id = 'wiki:dokuwiki-128.png';
826 $file = mediaFN($id);
829 'id' => $id,
839 … $this->remote->call('core.getMediaInfo', ['media' => $id, 'hash' => true, 'author' => false])
844 $this->remote->call('core.getMediaInfo', ['media' => $id, 'rev' => 1234]);
871 $id = 'test:image3.png';
872 $media = mediaFN($id);
878 media_save(['name' => $tmp], $id, true, AUTH_UPLOAD, 'rename');
882 $params = ['media' => $id, 'first' => 0]; // offset 0
889 $params = ['media' => $id, 'first' => 1]; // offset 1
895 $params = ['media' => $id, 'first' => 2]; // offset 2
900 $params = ['media' => $id, 'first' => 2]; // offset 3
927 $id = 'wiki:dokuwiki-128.png';
928 $file = mediaFN($id);
933 $this->remote->call('core.deleteMedia', ['media' => $id]);
950 $this->assertTrue($this->remote->call('core.deleteMedia', ['media' => $id]));
958 $this->remote->call('core.deleteMedia', ['media' => $id]);