MediaWiki
REL1_22
|
API Database More...
Public Member Functions | |
testLogin () | |
Testing login XXX this is a funny way of getting session context. | |
testUpload ($session) | |
testLogin | |
testUploadChunks ($session) | |
testLogin | |
testUploadMissingParams ($session) | |
testLogin | |
testUploadRequiresToken ($session) | |
testLogin | |
testUploadSameContent ($session) | |
testLogin | |
testUploadSameFileName ($session) | |
testLogin | |
testUploadStash ($session) | |
testLogin | |
testUploadZeroLength ($session) | |
testLogin |
API Database
n.b. Ensure that you can write to the images/ directory as the user that will run tests. Database Broken Broken test, reports false errors from time to time. See https://bugzilla.wikimedia.org/26169
This is pretty sucky... needs to be prettified.
Definition at line 29 of file ApiUploadTest.php.
Testing login XXX this is a funny way of getting session context.
Definition at line 34 of file ApiUploadTest.php.
References $params, $result, $user, array(), ApiTestCase\doApiRequest(), and list.
ApiUploadTest::testUpload | ( | $ | session | ) |
testLogin
Definition at line 102 of file ApiUploadTest.php.
References $params, $result, array(), ApiTestCaseUpload\deleteFileByContent(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadFile(), list, user, and wfTempDir().
ApiUploadTest::testUploadChunks | ( | $ | session | ) |
testLogin
Definition at line 427 of file ApiUploadTest.php.
References $params, $result, array(), ApiTestCaseUpload\clearFakeUploads(), ApiTestCaseUpload\deleteFileByContent(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadChunk(), list, MediaWikiTestCase\setMwGlobals(), user, wfDebug(), and wfTempDir().
ApiUploadTest::testUploadMissingParams | ( | $ | session | ) |
testLogin
Definition at line 84 of file ApiUploadTest.php.
References array(), ApiTestCase\doApiRequestWithToken(), and user.
ApiUploadTest::testUploadRequiresToken | ( | $ | session | ) |
testLogin
Definition at line 68 of file ApiUploadTest.php.
References array(), and ApiTestCase\doApiRequest().
ApiUploadTest::testUploadSameContent | ( | $ | session | ) |
testLogin
Definition at line 264 of file ApiUploadTest.php.
References $params, $result, array(), ApiTestCaseUpload\deleteFileByContent(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadFile(), list, user, and wfTempDir().
ApiUploadTest::testUploadSameFileName | ( | $ | session | ) |
testLogin
Definition at line 192 of file ApiUploadTest.php.
References $params, $result, array(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadFile(), list, user, and wfTempDir().
ApiUploadTest::testUploadStash | ( | $ | session | ) |
testLogin
Definition at line 344 of file ApiUploadTest.php.
References $params, $result, array(), ApiTestCaseUpload\clearFakeUploads(), ApiTestCaseUpload\deleteFileByContent(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadFile(), list, MediaWikiTestCase\setMwGlobals(), user, and wfTempDir().
ApiUploadTest::testUploadZeroLength | ( | $ | session | ) |
testLogin
Definition at line 154 of file ApiUploadTest.php.
References $params, array(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadFile(), user, and wfTempDir().