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
Merge "Skin: Don't use parser cache in getCachedNotice()"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
maintenance
/
backup_LogTest.php
diff --git
a/tests/phpunit/maintenance/backup_LogTest.php
b/tests/phpunit/maintenance/backup_LogTest.php
index
6629b67
..
0019a3f
100644
(file)
--- a/
tests/phpunit/maintenance/backup_LogTest.php
+++ b/
tests/phpunit/maintenance/backup_LogTest.php
@@
-78,7
+78,7
@@
class BackupDumperLoggerTest extends DumpTestCase {
$this->logId3 = $this->addLogEntry( 'move', 'delete',
$user2, NS_MAIN, "PageA", "SomeOtherComment",
$this->logId3 = $this->addLogEntry( 'move', 'delete',
$user2, NS_MAIN, "PageA", "SomeOtherComment",
-
array( 'key1' => 1, 3 => 'value3' )
);
+
[ 'key1' => 1, 3 => 'value3' ]
);
$this->assertGreaterThan( 0, $this->logId3 );
} catch ( Exception $e ) {
// We'd love to pass $e directly. However, ... see
$this->assertGreaterThan( 0, $this->logId3 );
} catch ( Exception $e ) {
// We'd love to pass $e directly. However, ... see
@@
-102,7
+102,7
@@
class BackupDumperLoggerTest extends DumpTestCase {
* @param array $parameters (optional) unserialized data accompanying the log entry
*/
private function assertLogItem( $id, $user_name, $user_id, $comment, $type,
* @param array $parameters (optional) unserialized data accompanying the log entry
*/
private function assertLogItem( $id, $user_name, $user_id, $comment, $type,
- $subtype, $title, $parameters =
array()
+ $subtype, $title, $parameters =
[]
) {
$this->assertNodeStart( "logitem" );
) {
$this->assertNodeStart( "logitem" );
@@
-142,11
+142,11
@@
class BackupDumperLoggerTest extends DumpTestCase {
// Preparing the dump
$fname = $this->getNewTempFile();
// Preparing the dump
$fname = $this->getNewTempFile();
- $dumper = new DumpBackup(
array( '--output=file:' . $fname )
);
+ $dumper = new DumpBackup(
[ '--output=file:' . $fname ]
);
$dumper->startId = $this->logId1;
$dumper->endId = $this->logId3 + 1;
$dumper->reporting = false;
$dumper->startId = $this->logId1;
$dumper->endId = $this->logId3 + 1;
$dumper->reporting = false;
- $dumper->setD
b
( $this->db );
+ $dumper->setD
B
( $this->db );
// Performing the dump
$dumper->dump( WikiExporter::LOGS, WikiExporter::TEXT );
// Performing the dump
$dumper->dump( WikiExporter::LOGS, WikiExporter::TEXT );
@@
-167,7
+167,7
@@
class BackupDumperLoggerTest extends DumpTestCase {
$this->assertLogItem( $this->logId3, "BackupDumperLogUserB",
$this->userId2, "SomeOtherComment", "move", "delete",
$this->assertLogItem( $this->logId3, "BackupDumperLogUserB",
$this->userId2, "SomeOtherComment", "move", "delete",
- "PageA",
array( 'key1' => 1, 3 => 'value3' )
);
+ "PageA",
[ 'key1' => 1, 3 => 'value3' ]
);
$this->assertDumpEnd();
}
$this->assertDumpEnd();
}
@@
-181,11
+181,11
@@
class BackupDumperLoggerTest extends DumpTestCase {
$fname = $this->getNewTempFile();
$dumper = new DumpBackup();
$fname = $this->getNewTempFile();
$dumper = new DumpBackup();
- $dumper->loadWithArgv(
array(
'--logs', '--output=gzip:' . $fname,
- '--reporting=2'
)
);
+ $dumper->loadWithArgv(
[
'--logs', '--output=gzip:' . $fname,
+ '--reporting=2'
]
);
$dumper->startId = $this->logId1;
$dumper->endId = $this->logId3 + 1;
$dumper->startId = $this->logId1;
$dumper->endId = $this->logId3 + 1;
- $dumper->setD
b
( $this->db );
+ $dumper->setD
B
( $this->db );
// xmldumps-backup demands reporting, although this is currently not
// implemented in BackupDumper, when dumping logging data. We
// xmldumps-backup demands reporting, although this is currently not
// implemented in BackupDumper, when dumping logging data. We
@@
-220,7
+220,7
@@
class BackupDumperLoggerTest extends DumpTestCase {
$this->assertLogItem( $this->logId3, "BackupDumperLogUserB",
$this->userId2, "SomeOtherComment", "move", "delete",
$this->assertLogItem( $this->logId3, "BackupDumperLogUserB",
$this->userId2, "SomeOtherComment", "move", "delete",
- "PageA",
array( 'key1' => 1, 3 => 'value3' )
);
+ "PageA",
[ 'key1' => 1, 3 => 'value3' ]
);
$this->assertDumpEnd();
$this->assertDumpEnd();