aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/EventSourceFactoryTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/EventSourceFactoryTest.php')
-rw-r--r--tests/lib/EventSourceFactoryTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/EventSourceFactoryTest.php b/tests/lib/EventSourceFactoryTest.php
index c5e22a8fe34..abd23e53bb5 100644
--- a/tests/lib/EventSourceFactoryTest.php
+++ b/tests/lib/EventSourceFactoryTest.php
@@ -9,11 +9,13 @@ namespace Test;
use OC\EventSourceFactory;
use OCP\IEventSource;
use OCP\IRequest;
+use OCP\Security\CSRF\ICsrfValidator;
class EventSourceFactoryTest extends TestCase {
public function testCreate(): void {
$request = $this->createMock(IRequest::class);
- $factory = new EventSourceFactory($request);
+ $csrfValidator = $this->createMock(ICsrfValidator::class);
+ $factory = new EventSourceFactory($request, $csrfValidator);
$instance = $factory->create();
$this->assertInstanceOf(IEventSource::class, $instance);