Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MidwayMockApplication

deprecated

Hierarchy

Properties

appDir

appDir: string

applicationContext

applicationContext: IMidwayContainer

baseDir

baseDir: string

enablePlugins

enablePlugins: any

mockClassFunction

mockClassFunction: MockClassFunctionHandler

pluginContext

pluginContext: IMidwayContainer

Methods

callback

  • callback(): any

close

  • close(): Promise<void>

getApplicationContext

  • getApplicationContext(): IMidwayContainer

getConfig

  • getConfig(key?: string): any

getLogger

  • getLogger(name?: string): any

getPlugin

  • getPlugin(pluginName: string): any

getPluginContext

  • getPluginContext(): IApplicationContext

httpRequest

  • httpRequest(): object & object

mockContext

mockCookies

mockCsrf

mockHeaders

mockHttpclient

mockService

  • mockService(service: string, methodName: string, fn: any): Application

mockServiceError

  • mockServiceError(service: string, methodName: string, err?: Error): Application

mockSession

ready

  • ready(): Promise<void>

runSchedule

  • runSchedule(schedulePath: any): Promise<any>

Generated using TypeDoc