createMock(IRequest::class); $controller = new ApiController(Application::APP_ID, $request); $this->assertEquals($controller->index()->getData()['message'], 'Hello world!'); } }