createMock(IRequest::class); $r->expects($this->any())->method('getRequestUri')->willReturn($uri); $this->loginAsUser('admin'); $s = new Server($r, '/'); $this->assertNotNull($s->server); foreach ($plugins as $plugin) { $this->assertNotNull($s->server->getPlugin($plugin)); } } public function providesUris() { return [ 'principals' => ['principals/users/admin', ['caldav', 'oc-resource-sharing', 'carddav']], 'calendars' => ['calendars/admin', ['caldav', 'oc-resource-sharing']], 'addressbooks' => ['addressbooks/admin', ['carddav', 'oc-resource-sharing']], ]; } }