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 "Fix sessionfailure i18n message during authentication"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
filerepo
/
FileRepoTest.php
diff --git
a/tests/phpunit/includes/filerepo/FileRepoTest.php
b/tests/phpunit/includes/filerepo/FileRepoTest.php
index
e3a7556
..
0d3e679
100644
(file)
--- a/
tests/phpunit/includes/filerepo/FileRepoTest.php
+++ b/
tests/phpunit/includes/filerepo/FileRepoTest.php
@@
-15,7
+15,7
@@
class FileRepoTest extends MediaWikiTestCase {
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionOptionCanNotBeAnEmptyArray() {
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionOptionCanNotBeAnEmptyArray() {
- new FileRepo(
array()
);
+ new FileRepo(
[]
);
}
/**
}
/**
@@
-23,9
+23,9
@@
class FileRepoTest extends MediaWikiTestCase {
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionOptionNeedNameKey() {
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionOptionNeedNameKey() {
- new FileRepo(
array(
+ new FileRepo(
[
'backend' => 'foobar'
'backend' => 'foobar'
-
)
);
+
]
);
}
/**
}
/**
@@
-33,23
+33,23
@@
class FileRepoTest extends MediaWikiTestCase {
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionOptionNeedBackendKey() {
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionOptionNeedBackendKey() {
- new FileRepo(
array(
+ new FileRepo(
[
'name' => 'foobar'
'name' => 'foobar'
-
)
);
+
]
);
}
/**
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionWithRequiredOptions() {
}
/**
* @covers FileRepo::__construct
*/
public function testFileRepoConstructionWithRequiredOptions() {
- $f = new FileRepo(
array(
+ $f = new FileRepo(
[
'name' => 'FileRepoTestRepository',
'name' => 'FileRepoTestRepository',
- 'backend' => new FSFileBackend(
array(
+ 'backend' => new FSFileBackend(
[
'name' => 'local-testing',
'name' => 'local-testing',
- '
lockManager' => 'nullLockManager
',
- 'containerPaths' =>
array()
-
)
)
-
)
);
- $this->assertInstanceOf(
'FileRepo'
, $f );
+ '
wikiId' => 'test_wiki
',
+ 'containerPaths' =>
[]
+
]
)
+
]
);
+ $this->assertInstanceOf(
FileRepo::class
, $f );
}
}
}
}