From 6efbf4d4fdf2c9f510ce1b344935b394ea254e30 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 21 Dec 2011 08:46:10 +0000 Subject: [PATCH] Fixed typo in testGetFileList() and used the proper FileBackend function delete --- tests/phpunit/includes/filerepo/FileBackendTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) ); -- 2.20.1