createStub(ServerRequest::class); $request->method('getParsedBodyParam')->willReturn('1'); (new DeleteController( $response, $template, new TemplateModel($this->dbi), new Relation($this->dbi, $template) ))($request); $this->assertTrue($response->hasSuccessState()); } }