From: Aaron Schulz Date: Wed, 21 Dec 2011 08:46:10 +0000 (+0000) Subject: Fixed typo in testGetFileList() and used the proper FileBackend function delete X-Git-Tag: 1.31.0-rc.0~25837 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=6efbf4d4fdf2c9f510ce1b344935b394ea254e30;p=lhc%2Fweb%2Fwiklou.git Fixed typo in testGetFileList() and used the proper FileBackend function delete --- diff --git a/tests/phpunit/includes/filerepo/FileBackendTest.php b/tests/phpunit/includes/filerepo/FileBackendTest.php index d94f10bfb4..043f0a0b56 100644 --- a/tests/phpunit/includes/filerepo/FileBackendTest.php +++ b/tests/phpunit/includes/filerepo/FileBackendTest.php @@ -570,7 +570,7 @@ class FileBackendTest extends MediaWikiTestCase { $this->assertEquals( $expected, sort( $list ), "Correct file listing." ); foreach ( $files as $file ) { - $this->backend->delete( array( 'src' => "$base/$files" ) ); + $this->backend->doOperation( array( 'op' => 'delete', 'src' => "$base/$file" ) ); } $iter = $this->backend->getFileList( array( 'dir' => "$base/cont1/not/exists" ) );