data = new Test\RuntimeData($conf); } function testVersionList() { $exp = new Response(200, ['apiLevels' => ['v1-2']]); $req = new Request("GET", "/"); $h = new Rest\NextCloudNews\Versions($this->data); $res = $h->dispatch($req); $this->assertEquals($exp, $res); } }