Version::VERSION, 'exporttemplateswork' => true, 'trackingwork' => false, 'db' => 'db', 'export_templates' => 'table', ]; $cfg['Server']['user'] = 'user'; $response = new ResponseRenderer(); $template = new Template(); $request = $this->createStub(ServerRequest::class); $request->method('getParsedBodyParam')->willReturn('1'); (new LoadController( $response, $template, new TemplateModel($this->dbi), new Relation($this->dbi, $template) ))($request); $this->assertTrue($response->hasSuccessState()); $this->assertEquals(['data' => 'data1'], $response->getJSONResult()); } }