Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix test using private propertries
  • Loading branch information
icewind1991 authored and LukasReschke committed Jul 8, 2016
commit 6da066e7be9ad77f9591d993df92156c9f184624
2 changes: 1 addition & 1 deletion apps/dav/lib/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Server {
private $baseUri;

/** @var Connector\Sabre\Server */
protected $server;
private $server;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be protected

PHP Fatal error: Cannot access private property OCA\DAV\Server::$server in /drone/src/github.com/nextcloud/server/apps/dav/tests/unit/ServerTest.php


public function __construct(IRequest $request, $baseUri) {
$this->request = $request;
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/tests/unit/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public function test() {
$r = $this->getMockBuilder('\OCP\IRequest')
->disableOriginalConstructor()->getMock();
$s = new Server($r, '/');
$this->assertNotNull($s->server);
$this->assertInstanceOf('OCA\DAV\Server', $s);
}
}