MediaWiki
REL1_19
|
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 |
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 28 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 $result, $user, and ApiTestCase\doApiRequest().
ApiUploadTest::testUpload | ( | $ | session | ) |
testLogin
Definition at line 102 of file ApiUploadTest.php.
References $result, ApiTestCaseUpload\deleteFileByContent(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadFile(), and wfTempDir().
ApiUploadTest::testUploadChunks | ( | $ | session | ) |
testLogin
Definition at line 434 of file ApiUploadTest.php.
References $result, $url, $wgUser, ApiTestCaseUpload\clearFakeUploads(), ApiTestCaseUpload\deleteFileByContent(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadChunk(), wfDebug(), and wfTempDir().
ApiUploadTest::testUploadMissingParams | ( | $ | session | ) |
testLogin
Definition at line 84 of file ApiUploadTest.php.
References ApiTestCase\doApiRequestWithToken().
ApiUploadTest::testUploadRequiresToken | ( | $ | session | ) |
testLogin
Definition at line 68 of file ApiUploadTest.php.
References ApiTestCase\doApiRequest().
ApiUploadTest::testUploadSameContent | ( | $ | session | ) |
testLogin
Definition at line 267 of file ApiUploadTest.php.
References $result, ApiTestCaseUpload\deleteFileByContent(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadFile(), and wfTempDir().
ApiUploadTest::testUploadSameFileName | ( | $ | session | ) |
testLogin
Definition at line 194 of file ApiUploadTest.php.
References $result, ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadFile(), and wfTempDir().
ApiUploadTest::testUploadStash | ( | $ | session | ) |
testLogin
Definition at line 350 of file ApiUploadTest.php.
References $result, $wgUser, ApiTestCaseUpload\clearFakeUploads(), ApiTestCaseUpload\deleteFileByContent(), ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadFile(), and wfTempDir().
ApiUploadTest::testUploadZeroLength | ( | $ | session | ) |
testLogin
Definition at line 156 of file ApiUploadTest.php.
References ApiTestCaseUpload\deleteFileByFileName(), ApiTestCase\doApiRequestWithToken(), ApiTestCaseUpload\fakeUploadFile(), and wfTempDir().