Lines Matching full:core

77     // core.getAPIVersion
82 $this->remote->call('core.getAPIVersion')
86 // core.getWikiVersion
91 $this->remote->call('core.getWikiVersion')
95 // core.getWikiTitle
101 $this->remote->call('core.getWikiTitle')
105 // core.getWikiTime
110 $this->remote->call('core.getWikiTime'),
119 // core.login
122 $this->markTestIncomplete('Missing test for core.login API Call');
125 // core.logoff
128 $this->markTestIncomplete('Missing test for core.logoff API Call');
131 // core.whoAmI
134 $this->markTestIncomplete('Missing test for core.whoAmI API Call');
137 // core.aclCheck -> See also ApiCoreAclCheckTest.php
142 $this->assertEquals(AUTH_UPLOAD, $this->remote->call('core.aclCheck', ['page' => $id]));
155 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', ['page' => $id]));
163 // core.listPages
197 'core.listPages',
207 // core.listPages
241 'core.listPages',
250 // core.searchPages
278 'core.searchPages',
286 //core.getRecentPageChanges
320 'core.getRecentPageChanges',
328 // core.getPage
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]),
367 $this->remote->call('core.getPage', ['page' => 'foobar', 'rev' => 1234]),
372 //core.getPageHTML
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]);
418 $this->remote->call('core.getPageHTML', ['page' => 'foobar', 'rev' => 1234]);
425 //core.getPageInfo
451 …$this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => 0, 'hash' => true, 'author' => tr…
466 $this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => $rev1]),
481 $this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => $rev2]),
487 $this->remote->call('core.getPageInfo', ['page' => $id, 'rev' => 1234]);
495 $this->remote->call('core.getPageInfo', ['page' => 'foobar', 'rev' => 1234]);
502 //core.getPageHistory
519 $versions = $this->remote->call('core.getPageHistory', $params);
530 $versions = $this->remote->call('core.getPageHistory', $params);
542 $versions = $this->remote->call('core.getPageHistory', $params);
550 $versions = $this->remote->call('core.getPageHistory', $params);
558 $versions = $this->remote->call('core.getPageHistory', $params);
563 //core.getPageLinks
594 $this->remote->call('core.getPageLinks', ['page' => 'mailinglist'])
598 $this->remote->call('core.getPageLinks', ['page' => 'foobar']);
601 //core.getPageBackLinks
610 $result = $this->remote->call('core.getPageBackLinks', ['page' => 'wiki:syntax']);
614 $this->assertEquals([], $this->remote->call('core.getPageBackLinks', ['page' => 'foobar']));
617 //core.lockPages
625 $this->remote->call('core.lockPages', ['pages' => $tolock]),
635 $this->remote->call('core.lockPages', ['pages' => $tolock]),
640 // core.unlockPages
656 $this->remote->call('core.unlockPages', ['pages' => $tounlock])
660 //core.savePage
672 $this->assertTrue($this->remote->call('core.savePage', $params));
680 $this->assertTrue($this->remote->call('core.savePage', $params));
686 $this->remote->call('core.savePage', $params);
693 //core.appendPage
705 $this->assertEquals(true, $this->remote->call('core.appendPage', $params));
713 // core.listMedia
734 'core.listMedia',
744 //core.getRecentMediaChanges
788 'core.getRecentMediaChanges',
796 //core.getMedia
805 $this->remote->call('core.getMedia', ['media' => $id])
810 $this->remote->call('core.getMedia', ['media' => $id, 'rev' => 1234]);
818 $this->remote->call('core.getMedia', ['media' => 'foobar.png']);
826 //core.getMediaInfo
843 … $this->remote->call('core.getMediaInfo', ['media' => $id, 'hash' => true, 'author' => false])
848 $this->remote->call('core.getMediaInfo', ['media' => $id, 'rev' => 1234]);
856 $this->remote->call('core.getMediaInfo', ['media' => 'foobar.png']);
863 //core.getMediaHistory
887 $versions = $this->remote->call('core.getMediaHistory', $params);
894 $versions = $this->remote->call('core.getMediaHistory', $params);
900 $versions = $this->remote->call('core.getMediaHistory', $params);
905 $versions = $this->remote->call('core.getMediaHistory', $params);
910 //core.saveMedia
919 …$this->assertTrue($this->remote->call('core.saveMedia', ['media' => $target, 'base64' => $base64])…
924 //core.deleteMedia
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]);