EventSourceFactoryTest.php 501 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace Test;
  7. use OC\EventSourceFactory;
  8. use OCP\IEventSource;
  9. use OCP\IRequest;
  10. class EventSourceFactoryTest extends TestCase {
  11. public function testCreate(): void {
  12. $request = $this->createMock(IRequest::class);
  13. $factory = new EventSourceFactory($request);
  14. $instance = $factory->create();
  15. $this->assertInstanceOf(IEventSource::class, $instance);
  16. }
  17. }