blob: c5e22a8fe34a364e4771ce582687051516f9cdd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?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);
}
}
|