dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
API: Migrate Title::userCan() calls to PermissionManager
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
ApiUploadTest.php
diff --git
a/tests/phpunit/includes/api/ApiUploadTest.php
b/tests/phpunit/includes/api/ApiUploadTest.php
index
6b60409
..
41c9aed
100644
(file)
--- a/
tests/phpunit/includes/api/ApiUploadTest.php
+++ b/
tests/phpunit/includes/api/ApiUploadTest.php
@@
-22,7
+22,7
@@
*
* @covers ApiUpload
*/
*
* @covers ApiUpload
*/
-class ApiUploadTest extends Api
TestCaseUpload
{
+class ApiUploadTest extends Api
UploadTestCase
{
/**
* Testing login
* XXX this is a funny way of getting session context
/**
* Testing login
* XXX this is a funny way of getting session context
@@
-456,9
+456,9
@@
class ApiUploadTest extends ApiTestCaseUpload {
$chunkSessionKey = false;
$resultOffset = 0;
// Open the file:
$chunkSessionKey = false;
$resultOffset = 0;
// Open the file:
-
MediaWiki
\suppressWarnings();
+
Wikimedia
\suppressWarnings();
$handle = fopen( $filePath, "r" );
$handle = fopen( $filePath, "r" );
-
MediaWiki
\restoreWarnings();
+
Wikimedia
\restoreWarnings();
if ( $handle === false ) {
$this->markTestIncomplete( "could not open file: $filePath" );
if ( $handle === false ) {
$this->markTestIncomplete( "could not open file: $filePath" );
@@
-466,9
+466,9
@@
class ApiUploadTest extends ApiTestCaseUpload {
while ( !feof( $handle ) ) {
// Get the current chunk
while ( !feof( $handle ) ) {
// Get the current chunk
-
MediaWiki
\suppressWarnings();
+
Wikimedia
\suppressWarnings();
$chunkData = fread( $handle, $chunkSize );
$chunkData = fread( $handle, $chunkSize );
-
MediaWiki
\restoreWarnings();
+
Wikimedia
\restoreWarnings();
// Upload the current chunk into the $_FILE object:
$this->fakeUploadChunk( 'chunk', 'blob', $mimeType, $chunkData );
// Upload the current chunk into the $_FILE object:
$this->fakeUploadChunk( 'chunk', 'blob', $mimeType, $chunkData );