Fix test using private propertries

This commit is contained in:
Robin Appelman 2016-07-07 16:56:28 +02:00 committed by Lukas Reschke
parent d0e6fdba4d
commit 6da066e7be
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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);
}
}