diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-02-25 03:04:31 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-03-02 01:59:15 +0000 |
commit | aafb305fed9a006b41456036d174a7f4c4de78af (patch) | |
tree | 2725dea14a0c6d0023826d8c460c88097963fa79 /apps/dav/tests | |
parent | 302a67f6853065122ef8648cdbdefc1504e8d350 (diff) | |
download | nextcloud-server-aafb305fed9a006b41456036d174a7f4c4de78af.tar.gz nextcloud-server-aafb305fed9a006b41456036d174a7f4c4de78af.zip |
Minor updates
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php b/apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php index e2eb0c75d9b..d1bac3642dd 100644 --- a/apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php +++ b/apps/dav/tests/integration/UserMigration/CalendarMigratorTest.php @@ -36,6 +36,7 @@ use Sabre\VObject\Component\VCalendar; use Sabre\VObject\Property as VObjectProperty; use Sabre\VObject\Reader as VObjectReader; use Sabre\VObject\UUIDUtil; +use Symfony\Component\Console\Output\OutputInterface; use Test\TestCase; /** @@ -47,6 +48,8 @@ class CalendarMigratorTest extends TestCase { private CalendarMigrator $migrator; + private OutputInterface $output; + private const ASSETS_DIR = __DIR__ . '/assets/'; protected function setUp(): void { @@ -55,6 +58,7 @@ class CalendarMigratorTest extends TestCase { $this->userManager = $container->get(IUserManager::class); $this->migrator = $container->get(CalendarMigrator::class); + $this->output = $this->createMock(OutputInterface::class); } public function dataAssets(): array { @@ -111,7 +115,7 @@ class CalendarMigratorTest extends TestCase { $problems = $importCalendar->validate(); $this->assertEmpty($problems); - $this->invokePrivate($this->migrator, 'importCalendar', [$user, $filename, $initialCalendarUri, $importCalendar]); + $this->invokePrivate($this->migrator, 'importCalendar', [$user, $filename, $initialCalendarUri, $importCalendar, $this->output]); $calendarExports = $this->invokePrivate($this->migrator, 'getCalendarExports', [$user]); $this->assertCount(1, $calendarExports); |