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
Pass phpcs-strict on some test files (10/11)
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
upload
/
UploadFromUrlTest.php
diff --git
a/tests/phpunit/includes/upload/UploadFromUrlTest.php
b/tests/phpunit/includes/upload/UploadFromUrlTest.php
index
879d821
..
7125247
100644
(file)
--- a/
tests/phpunit/includes/upload/UploadFromUrlTest.php
+++ b/
tests/phpunit/includes/upload/UploadFromUrlTest.php
@@
-23,7
+23,9
@@
class UploadFromUrlTest extends ApiTestCase {
}
}
}
}
- protected function doApiRequest( array $params, array $unused = null, $appendModule = false, User $user = null ) {
+ protected function doApiRequest( array $params, array $unused = null,
+ $appendModule = false, User $user = null
+ ) {
$sessionId = session_id();
session_write_close();
$sessionId = session_id();
session_write_close();
@@
-203,7
+205,10
@@
class UploadFromUrlTest extends ApiTestCase {
$page->doDeleteArticle( '' );
}
$page->doDeleteArticle( '' );
}
- $this->assertFalse( (bool)$talk->getArticleID( Title::GAID_FOR_UPDATE ), 'User talk does not exist' );
+ $this->assertFalse(
+ (bool)$talk->getArticleID( Title::GAID_FOR_UPDATE ),
+ 'User talk does not exist'
+ );
$this->doApiRequest( array(
'action' => 'upload',
$this->doApiRequest( array(
'action' => 'upload',
@@
-236,7
+241,10
@@
class UploadFromUrlTest extends ApiTestCase {
) );
} catch ( UsageException $e ) {
$exception = true;
) );
} catch ( UsageException $e ) {
$exception = true;
- $this->assertEquals( 'Using leavemessage without ignorewarnings is not supported', $e->getMessage() );
+ $this->assertEquals(
+ 'Using leavemessage without ignorewarnings is not supported',
+ $e->getMessage()
+ );
}
$this->assertTrue( $exception );
}
$this->assertTrue( $exception );