diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-10-14 19:29:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 19:29:34 +0200 |
commit | 67baaaaff937158f8c418a8f7265f9687d8d7403 (patch) | |
tree | 811ae390f4e75aa09de4ed0562c7070e508107bc /tests | |
parent | 9aa248f007ef5734017e7e2daf5dac28c3321327 (diff) | |
parent | c75a12c1540b63909e2546733a83a36646c82bd3 (diff) | |
download | nextcloud-server-67baaaaff937158f8c418a8f7265f9687d8d7403.tar.gz nextcloud-server-67baaaaff937158f8c418a8f7265f9687d8d7403.zip |
Merge pull request #29231 from nextcloud/fix/calendar-providers-instances
Build instances of the calendar providers before using them
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Calendar/ManagerTest.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/lib/Calendar/ManagerTest.php b/tests/lib/Calendar/ManagerTest.php index 70f7dbe2437..a4d9d45fdb2 100644 --- a/tests/lib/Calendar/ManagerTest.php +++ b/tests/lib/Calendar/ManagerTest.php @@ -27,6 +27,8 @@ use OC\AppFramework\Bootstrap\Coordinator; use OC\Calendar\Manager; use OCP\Calendar\ICalendar; use PHPUnit\Framework\MockObject\MockObject; +use Psr\Container\ContainerInterface; +use Psr\Log\LoggerInterface; use Test\TestCase; class ManagerTest extends TestCase { @@ -34,6 +36,12 @@ class ManagerTest extends TestCase { /** @var Coordinator|MockObject */ private $coordinator; + /** @var MockObject|ContainerInterface */ + private $container; + + /** @var MockObject|LoggerInterface */ + private $logger; + /** @var Manager */ private $manager; @@ -41,9 +49,13 @@ class ManagerTest extends TestCase { parent::setUp(); $this->coordinator = $this->createMock(Coordinator::class); + $this->container = $this->createMock(ContainerInterface::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->manager = new Manager( - $this->coordinator + $this->coordinator, + $this->container, + $this->logger ); } |