public function testFetch() { $this->data->expects($this->any())->method('read')->willReturn([]); $templateResponse = $this->controller->fetch(1); $this->assertTrue($templateResponse instanceof TemplateResponse, 'Asserting type of return is \\OCP\\AppFramework\\Http\\TemplateResponse'); $renderedResponse = $templateResponse->render(); $this->assertEmpty($renderedResponse); }