Lines Matching refs:id
140 $id = 'aclpage';
142 $this->assertEquals(AUTH_UPLOAD, $this->remote->call('core.aclCheck', ['page' => $id]));
155 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', ['page' => $id]));
253 $id = 'wiki:syntax';
254 $file = wikiFN($id);
256 (new Indexer())->addPage($id); //full text search depends on index
259 'id' => $id,
331 $id = 'pageversion';
332 $file = wikiFN($id);
334 saveWikiText($id, 'first version', 'first');
338 saveWikiText($id, 'second version', 'second');
343 $this->remote->call('core.getPage', ['page' => $id, 'rev' => 0]),
349 $this->remote->call('core.getPage', ['page' => $id, 'rev' => $rev1]),
355 $this->remote->call('core.getPage', ['page' => $id, 'rev' => $rev2]),
361 $this->remote->call('core.getPage', ['page' => $id, 'rev' => 1234]),
375 $id = 'htmltest';
376 $file = wikiFN($id);
383 saveWikiText($id, $content1, 'first');
387 saveWikiText($id, $content2, 'second');
392 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => 0]),
398 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => $rev1]),
404 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => $rev2]),
410 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => 1234]);
428 $id = 'pageinfo';
429 $file = wikiFN($id);
433 saveWikiText($id, 'first version', 'first');
437 saveWikiText($id, 'second version', 'second');
441 'id' => $id,
445 'title' => $id,
451 …$this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => 0, 'hash' => true, 'author' => tr…
456 'id' => $id,
460 'title' => $id,
461 'size' => filesize(wikiFN($id, $rev1)),
466 $this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => $rev1]),
471 'id' => $id,
475 'title' => $id,
476 'size' => filesize(wikiFN($id, $rev2)),
481 $this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => $rev2]),
487 $this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => 1234]);
507 $id = 'revpage';
508 $file = wikiFN($id);
513 saveWikiText($id, "rev$i", "rev$i");
518 $params = ['page' => $id, 'first' => 0];
529 $params = ['page' => $id, 'first' => 1]; // offset 1
541 $params = ['page' => $id, 'first' => 0]; // first page
549 $params = ['page' => $id, 'first' => $conf['recent']]; // second page
557 $params = ['page' => $id, 'first' => $conf['recent'] * 2]; // third page
663 $id = 'putpage';
667 'page' => $id,
673 $this->assertEquals($content, rawWiki($id));
677 'page' => $id,
681 $this->assertFileDoesNotExist(wikiFN($id));
696 $id = 'appendpage';
699 saveWikiText($id, $content, 'local');
702 'page' => $id,
706 $this->assertEquals($content . $morecontent, rawWiki($id));
716 $id = 'wiki:dokuwiki-128.png';
717 $file = mediaFN($id);
722 'id' => $id,
799 $id = 'wiki:dokuwiki-128.png';
800 $file = mediaFN($id);
805 $this->remote->call('core.getMedia', ['media' => $id])
810 $this->remote->call('core.getMedia', ['media' => $id, 'rev' => 1234]);
829 $id = 'wiki:dokuwiki-128.png';
830 $file = mediaFN($id);
833 'id' => $id,
843 … $this->remote->call('core.getMediaInfo', ['media' => $id, 'hash' => true, 'author' => false])
848 $this->remote->call('core.getMediaInfo', ['media' => $id, 'rev' => 1234]);
875 $id = 'test:image3.png';
876 $media = mediaFN($id);
882 media_save(['name' => $tmp], $id, true, AUTH_UPLOAD, 'rename');
886 $params = ['media' => $id, 'first' => 0]; // offset 0
893 $params = ['media' => $id, 'first' => 1]; // offset 1
899 $params = ['media' => $id, 'first' => 2]; // offset 2
904 $params = ['media' => $id, 'first' => 2]; // offset 3
931 $id = 'wiki:dokuwiki-128.png';
932 $file = mediaFN($id);
937 $this->remote->call('core.deleteMedia', ['media' => $id]);
954 $this->assertTrue($this->remote->call('core.deleteMedia', ['media' => $id]));
962 $this->remote->call('core.deleteMedia', ['media' => $id]);