diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-04-13 10:56:07 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-04-13 17:52:40 +0300 |
commit | 78c8e578966e3867f583ca3a2aacda583c5ecfbd (patch) | |
tree | 765ea9fa2d07f0c581a014fce5f5a658dd5ef94f /apps/settings | |
parent | 0fd72f4355c73a2f859e074754f0f255db16f536 (diff) |
Fix migrators according to exceptions
Fixed syntax errors.
Removed if condition for copyToFolder since it's void now.
Change signature of setMigratorVersions to also be void.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/tests/UserMigration/AccountMigratorTest.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/settings/tests/UserMigration/AccountMigratorTest.php b/apps/settings/tests/UserMigration/AccountMigratorTest.php index 759e7d8a842..573d18380e5 100644 --- a/apps/settings/tests/UserMigration/AccountMigratorTest.php +++ b/apps/settings/tests/UserMigration/AccountMigratorTest.php @@ -152,14 +152,12 @@ class AccountMigratorTest extends TestCase { $this->exportDestination ->expects($this->once()) ->method('addFileContents') - ->with($this->matchesRegularExpression(self::REGEX_ACCOUNT_FILE), json_encode($exportData)) - ->willReturn(true); + ->with($this->matchesRegularExpression(self::REGEX_ACCOUNT_FILE), json_encode($exportData)); $this->exportDestination ->expects($this->once()) ->method('addFileAsStream') - ->with($this->matchesRegularExpression(self::REGEX_AVATAR_FILE), $this->isType('resource')) - ->willReturn(true); + ->with($this->matchesRegularExpression(self::REGEX_AVATAR_FILE), $this->isType('resource')); $this->migrator->export($user, $this->exportDestination, $this->output); } |