diff options
Diffstat (limited to 'tests/lib/EventSourceFactoryTest.php')
-rw-r--r-- | tests/lib/EventSourceFactoryTest.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/lib/EventSourceFactoryTest.php b/tests/lib/EventSourceFactoryTest.php new file mode 100644 index 00000000000..96d6e6e770a --- /dev/null +++ b/tests/lib/EventSourceFactoryTest.php @@ -0,0 +1,22 @@ +<?php + +/** + * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +namespace Test; + +use OC\EventSourceFactory; +use OCP\IEventSource; +use OCP\IRequest; + +class EventSourceFactoryTest extends TestCase { + public function testCreate(): void { + $request = $this->createMock(IRequest::class); + $factory = new EventSourceFactory($request); + + $instance = $factory->create(); + $this->assertInstanceOf(IEventSource::class, $instance); + } +} |