aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Comments/RootCollectionTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-11 21:32:18 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-12 13:55:19 +0200
commit234b510652d117bb3ef9ef3b6315db3a2c2eb91b (patch)
tree880cec2bf4fe4846eff9fa5aa68d2671fb0495be /apps/dav/tests/unit/Comments/RootCollectionTest.php
parent138f47a1b980aaceb116b256b8ccf14f523e7e67 (diff)
downloadnextcloud-server-234b510652d117bb3ef9ef3b6315db3a2c2eb91b.tar.gz
nextcloud-server-234b510652d117bb3ef9ef3b6315db3a2c2eb91b.zip
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav/tests/unit/Comments/RootCollectionTest.php')
-rw-r--r--apps/dav/tests/unit/Comments/RootCollectionTest.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/dav/tests/unit/Comments/RootCollectionTest.php b/apps/dav/tests/unit/Comments/RootCollectionTest.php
index 68098f2aebc..8df7dd70dd3 100644
--- a/apps/dav/tests/unit/Comments/RootCollectionTest.php
+++ b/apps/dav/tests/unit/Comments/RootCollectionTest.php
@@ -39,19 +39,19 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class RootCollectionTest extends \Test\TestCase {
- /** @var \OCP\Comments\ICommentsManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\Comments\ICommentsManager|\PHPUnit\Framework\MockObject\MockObject */
protected $commentsManager;
- /** @var \OCP\IUserManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\IUserManager|\PHPUnit\Framework\MockObject\MockObject */
protected $userManager;
- /** @var \OCP\ILogger|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\ILogger|\PHPUnit\Framework\MockObject\MockObject */
protected $logger;
/** @var \OCA\DAV\Comments\RootCollection */
protected $collection;
- /** @var \OCP\IUserSession|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\IUserSession|\PHPUnit\Framework\MockObject\MockObject */
protected $userSession;
/** @var EventDispatcherInterface */
protected $dispatcher;
- /** @var \OCP\IUser|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var \OCP\IUser|\PHPUnit\Framework\MockObject\MockObject */
protected $user;
protected function setUp(): void {
@@ -107,14 +107,14 @@ class RootCollectionTest extends \Test\TestCase {
});
}
-
+
public function testCreateFile() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
$this->collection->createFile('foo');
}
-
+
public function testCreateDirectory() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
@@ -127,7 +127,7 @@ class RootCollectionTest extends \Test\TestCase {
$this->assertTrue($etc instanceof EntityTypeCollectionImplementation);
}
-
+
public function testGetChildInvalid() {
$this->expectException(\Sabre\DAV\Exception\NotFound::class);
@@ -135,7 +135,7 @@ class RootCollectionTest extends \Test\TestCase {
$this->collection->getChild('robots');
}
-
+
public function testGetChildNoAuth() {
$this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class);
@@ -151,7 +151,7 @@ class RootCollectionTest extends \Test\TestCase {
}
}
-
+
public function testGetChildrenNoAuth() {
$this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class);
@@ -168,14 +168,14 @@ class RootCollectionTest extends \Test\TestCase {
$this->assertFalse($this->collection->childExists('robots'));
}
-
+
public function testChildExistsNoAuth() {
$this->expectException(\Sabre\DAV\Exception\NotAuthenticated::class);
$this->collection->childExists('files');
}
-
+
public function testDelete() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);
@@ -186,7 +186,7 @@ class RootCollectionTest extends \Test\TestCase {
$this->assertSame('comments', $this->collection->getName());
}
-
+
public function testSetName() {
$this->expectException(\Sabre\DAV\Exception\Forbidden::class);