File tree Expand file tree Collapse file tree
tests/php/ControllerIntegration/Workflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424use OCA \ProfileFields \Workflow \ProfileFieldValueSubjectContext ;
2525use OCA \ProfileFields \Workflow \UserProfileFieldCheck ;
2626use OCP \App \IAppManager ;
27+ use OCP \AppFramework \Bootstrap \IBootContext ;
2728use OCP \AppFramework \Services \IAppConfig ;
2829use OCP \DB \ISchemaWrapper ;
2930use OCP \EventDispatcher \Event ;
@@ -199,6 +200,16 @@ protected function setUp(): void {
199200 ProfileFieldValueEntity::class,
200201 [\OCA \ProfileFields \Workflow \Event \ProfileFieldValueUpdatedEvent::class],
201202 );
203+
204+ $ workflowAppClass = 'OCA \\WorkflowEngine \\AppInfo \\Application ' ;
205+ $ workflowApp = new $ workflowAppClass ();
206+ $ bootContext = $ this ->createMock (IBootContext::class);
207+ $ bootContext ->expects ($ this ->any ())
208+ ->method ('injectFn ' )
209+ ->willReturnCallback (function (callable $ fn ) use ($ container , $ generalLogger ): mixed {
210+ return $ fn ($ this ->dispatcher , $ container , $ generalLogger );
211+ });
212+ $ workflowApp ->boot ($ bootContext );
202213 }
203214
204215 protected function tearDown (): void {
You can’t perform that action at this time.
0 commit comments