diff options
Diffstat (limited to 'tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php')
-rw-r--r-- | tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php b/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php index 247089df2a6f..f8b4d0c5fbeb 100644 --- a/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php +++ b/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php @@ -32,9 +32,10 @@ class MigrateFileRepoLayoutTest extends MediaWikiTestCase { ->disableOriginalConstructor() ->getMock(); - $imageRow = new stdClass; - $imageRow->img_name = $filename; - $imageRow->img_sha1 = sha1( $this->text ); + $imageRow = (object)[ + 'img_name' => $filename, + 'img_sha1' => sha1( $this->text ), + ]; $dbMock->expects( $this->any() ) ->method( 'select' ) |