File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111namespace Test \Activity ;
1212
1313use OC \Activity \Manager ;
14+ use OC \AppFramework \Bootstrap \Coordinator ;
1415use OCP \Activity \Exceptions \IncompleteActivityException ;
1516use OCP \Activity \IConsumer ;
1617use OCP \Activity \IEvent ;
@@ -34,6 +35,7 @@ class ManagerTest extends TestCase {
3435 protected IValidator &MockObject $ validator ;
3536 protected IRichTextFormatter &MockObject $ richTextFormatter ;
3637 private ITimeFactory &MockObject $ time ;
38+ private Coordinator &MockObject $ coordinator ;
3739
3840 #[\Override]
3941 protected function setUp (): void {
@@ -45,6 +47,7 @@ protected function setUp(): void {
4547 $ this ->validator = $ this ->createMock (IValidator::class);
4648 $ this ->richTextFormatter = $ this ->createMock (IRichTextFormatter::class);
4749 $ this ->time = $ this ->createMock (ITimeFactory::class);
50+ $ this ->coordinator = $ this ->createMock (Coordinator::class);
4851
4952 $ this ->activityManager = new Manager (
5053 $ this ->request ,
@@ -54,6 +57,7 @@ protected function setUp(): void {
5457 $ this ->richTextFormatter ,
5558 $ this ->createMock (IL10N ::class),
5659 $ this ->time ,
60+ $ this ->coordinator ,
5761 );
5862
5963 $ this ->assertSame ([], self ::invokePrivate ($ this ->activityManager , 'getConsumers ' ));
You can’t perform that action at this time.
0 commit comments