Fixed broken filebackend test for "describe"
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 16 Apr 2014 00:38:50 +0000 (17:38 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 16 Apr 2014 00:38:50 +0000 (17:38 -0700)
Change-Id: I30e3cfc29a1db92e7f1b85af54db778ee639e016

tests/phpunit/includes/filebackend/FileBackendTest.php

index cee2da2..1220270 100644 (file)
@@ -686,6 +686,7 @@ class FileBackendTest extends MediaWikiTestCase {
                        $this->assertEquals( array( 0 => true ), $status->success,
                                "Describe of file at $source has proper 'success' field in Status ($backendName)." );
                        if ( $this->backend->hasFeatures( FileBackend::ATTR_HEADERS ) ) {
+                               $attr = $this->backend->getFileXAttributes( array( 'src' => $source ) );
                                $this->assertHasHeaders( $op['headers'], $attr );
                        }
                } else {