Merge "Adjust Shortpages query with multiple content namespaces"
[lhc/web/wiklou.git] / tests / phpunit / includes / media / FormatMetadataTest.php
index 22383e1..e9fc84e 100644 (file)
@@ -33,7 +33,7 @@ class FormatMetadataTest extends MediaWikiMediaTestCase {
                $this->assertNotNull( $dateIndex, 'Date entry exists in metadata' );
                $this->assertEquals( '0000:01:00 00:02:27',
                        $meta['visible'][$dateIndex]['value'],
-                       'File with invalid date metadata (bug 29471)' );
+                       'File with invalid date metadata (T31471)' );
        }
 
        /**
@@ -52,47 +52,47 @@ class FormatMetadataTest extends MediaWikiMediaTestCase {
        }
 
        public function provideResolveMultivalueValue() {
-               return array(
-                       'nonArray' => array(
+               return [
+                       'nonArray' => [
                                'foo',
                                'foo'
-                       ),
-                       'multiValue' => array(
-                               array( 'first', 'second', 'third', '_type' => 'ol' ),
+                       ],
+                       'multiValue' => [
+                               [ 'first', 'second', 'third', '_type' => 'ol' ],
                                'first'
-                       ),
-                       'noType' => array(
-                               array( 'first', 'second', 'third' ),
+                       ],
+                       'noType' => [
+                               [ 'first', 'second', 'third' ],
                                'first'
-                       ),
-                       'typeFirst' => array(
-                               array( '_type' => 'ol', 'first', 'second', 'third' ),
+                       ],
+                       'typeFirst' => [
+                               [ '_type' => 'ol', 'first', 'second', 'third' ],
                                'first'
-                       ),
-                       'multilang' => array(
-                               array(
+                       ],
+                       'multilang' => [
+                               [
                                        'en' => 'first',
                                        'de' => 'Erste',
                                        '_type' => 'lang'
-                               ),
-                               array(
+                               ],
+                               [
                                        'en' => 'first',
                                        'de' => 'Erste',
                                        '_type' => 'lang'
-                               ),
-                       ),
-                       'multilang-multivalue' => array(
-                               array(
-                                       'en' => array( 'first', 'second' ),
-                                       'de' => array( 'Erste', 'Zweite' ),
+                               ],
+                       ],
+                       'multilang-multivalue' => [
+                               [
+                                       'en' => [ 'first', 'second' ],
+                                       'de' => [ 'Erste', 'Zweite' ],
                                        '_type' => 'lang'
-                               ),
-                               array(
+                               ],
+                               [
                                        'en' => 'first',
                                        'de' => 'Erste',
                                        '_type' => 'lang'
-                               ),
-                       ),
-               );
+                               ],
+                       ],
+               ];
        }
 }