2023-05-21 23:05:40 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2024-05-10 15:09:14 +02:00
|
|
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-05-21 23:05:40 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|