0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-20 05:00:15 +00:00
nextcloud_server/tests/lib/EventSourceFactoryTest.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
501 B
PHP
Raw Normal View History

<?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);
}
}