summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2019-08-26 11:42:03 +0200
committerGitHub <noreply@github.com>2019-08-26 11:42:03 +0200
commit40edabaf6170e74d319d11585b673316348e1ff3 (patch)
treedd1b375658b7b502479724f751bf1dba8470482a /tests
parentaf8abab4b34cc5e2a86ef6159ce2c359f127fc93 (diff)
parent7927aebdeb3a1cf0f7e953ed3adfd1f34898d98c (diff)
downloadnextcloud-server-40edabaf6170e74d319d11585b673316348e1ff3.tar.gz
nextcloud-server-40edabaf6170e74d319d11585b673316348e1ff3.zip
Merge pull request #16795 from nextcloud/enh/phpstan/limiter
Fix report of phpstan in Limiter
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Security/RateLimiting/LimiterTest.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/lib/Security/RateLimiting/LimiterTest.php b/tests/lib/Security/RateLimiting/LimiterTest.php
index 80b63ebb391..5d42104ba82 100644
--- a/tests/lib/Security/RateLimiting/LimiterTest.php
+++ b/tests/lib/Security/RateLimiting/LimiterTest.php
@@ -31,10 +31,6 @@ use OCP\IUserSession;
use Test\TestCase;
class LimiterTest extends TestCase {
- /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
- private $userSession;
- /** @var IRequest|\PHPUnit_Framework_MockObject_MockObject */
- private $request;
/** @var ITimeFactory|\PHPUnit_Framework_MockObject_MockObject */
private $timeFactory;
/** @var IBackend|\PHPUnit_Framework_MockObject_MockObject */
@@ -45,14 +41,10 @@ class LimiterTest extends TestCase {
public function setUp() {
parent::setUp();
- $this->userSession = $this->createMock(IUserSession::class);
- $this->request = $this->createMock(IRequest::class);
$this->timeFactory = $this->createMock(ITimeFactory::class);
$this->backend = $this->createMock(IBackend::class);
$this->limiter = new Limiter(
- $this->userSession,
- $this->request,
$this->timeFactory,
$this->backend
);