Merge "Cleanup page creation in RevisionIntegrationTest"
[lhc/web/wiklou.git] / tests / phpunit / includes / deferred / CdnCacheUpdateTest.php
index de77ad5..f3c949d 100644 (file)
@@ -1,10 +1,16 @@
 <?php
 
+use Wikimedia\TestingAccessWrapper;
+
 class CdnCacheUpdateTest extends MediaWikiTestCase {
+
+       /**
+        * @covers CdnCacheUpdate::merge
+        */
        public function testPurgeMergeWeb() {
                $this->setMwGlobals( 'wgCommandLineMode', false );
 
-               $urls1 = array();
+               $urls1 = [];
                $title = Title::newMainPage();
                $urls1[] = $title->getCanonicalURL( '?x=1' );
                $urls1[] = $title->getCanonicalURL( '?x=2' );
@@ -12,7 +18,7 @@ class CdnCacheUpdateTest extends MediaWikiTestCase {
                $update1 = new CdnCacheUpdate( $urls1 );
                DeferredUpdates::addUpdate( $update1 );
 
-               $urls2 = array();
+               $urls2 = [];
                $urls2[] = $title->getCanonicalURL( '?x=2' );
                $urls2[] = $title->getCanonicalURL( '?x=3' );
                $urls2[] = $title->getCanonicalURL( '?x=4' );