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 'Tags' padding to keep it farther from the edge and document the source...
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
PrefixSearchTest.php
diff --git
a/tests/phpunit/includes/PrefixSearchTest.php
b/tests/phpunit/includes/PrefixSearchTest.php
index
ed34a8a
..
3bde5de
100644
(file)
--- a/
tests/phpunit/includes/PrefixSearchTest.php
+++ b/
tests/phpunit/includes/PrefixSearchTest.php
@@
-211,7
+211,7
@@
class PrefixSearchTest extends MediaWikiLangTestCase {
public function testSearch( array $case ) {
$this->searchProvision( null );
public function testSearch( array $case ) {
$this->searchProvision( null );
- $namespaces =
isset( $case['namespaces'] ) ? $case['namespaces'] :
[];
+ $namespaces =
$case['namespaces'] ??
[];
if ( wfGetDB( DB_REPLICA )->getType() === 'postgres' ) {
// Postgres will sort lexicographically on utf8 code units (" " before "/")
if ( wfGetDB( DB_REPLICA )->getType() === 'postgres' ) {
// Postgres will sort lexicographically on utf8 code units (" " before "/")
@@
-235,7
+235,7
@@
class PrefixSearchTest extends MediaWikiLangTestCase {
public function testSearchWithOffset( array $case ) {
$this->searchProvision( null );
public function testSearchWithOffset( array $case ) {
$this->searchProvision( null );
- $namespaces =
isset( $case['namespaces'] ) ? $case['namespaces'] :
[];
+ $namespaces =
$case['namespaces'] ??
[];
$searcher = new StringPrefixSearch;
$results = $searcher->search( $case['query'], 3, $namespaces, 1 );
$searcher = new StringPrefixSearch;
$results = $searcher->search( $case['query'], 3, $namespaces, 1 );