summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-07-07 16:56:28 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-07-08 12:36:25 +0200
commit6da066e7be9ad77f9591d993df92156c9f184624 (patch)
tree473604ce19265a36c8230bc5efc01ca906152f80 /apps/dav
parentd0e6fdba4d38ad7d7d7e95ec4cb752d8b609af5c (diff)
downloadnextcloud-server-6da066e7be9ad77f9591d993df92156c9f184624.tar.gz
nextcloud-server-6da066e7be9ad77f9591d993df92156c9f184624.zip
Fix test using private propertries
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Server.php2
-rw-r--r--apps/dav/tests/unit/ServerTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php
index ddfd84d4369..0715d39049c 100644
--- a/apps/dav/lib/Server.php
+++ b/apps/dav/lib/Server.php
@@ -47,7 +47,7 @@ class Server {
private $baseUri;
/** @var Connector\Sabre\Server */
- protected $server;
+ private $server;
public function __construct(IRequest $request, $baseUri) {
$this->request = $request;
diff --git a/apps/dav/tests/unit/ServerTest.php b/apps/dav/tests/unit/ServerTest.php
index 83f14db88f1..97c165683bd 100644
--- a/apps/dav/tests/unit/ServerTest.php
+++ b/apps/dav/tests/unit/ServerTest.php
@@ -39,6 +39,6 @@ class ServerTest extends \Test\TestCase {
$r = $this->getMockBuilder('\OCP\IRequest')
->disableOriginalConstructor()->getMock();
$s = new Server($r, '/');
- $this->assertNotNull($s->server);
+ $this->assertInstanceOf('OCA\DAV\Server', $s);
}
}