summaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-03-22 12:08:45 +0100
committerGitHub <noreply@github.com>2022-03-22 12:08:45 +0100
commit0acd4b5f8202be8b3f3b4e6d7481e3d23e496b86 (patch)
tree06897c455b69be134fcd61b0f0130609ce7a75a1 /tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
parentb6209d61251f7abacefb8cf3c164d39bcba29100 (diff)
parent67452b94ca0b59a063c4364f5930bb5186db2d55 (diff)
downloadnextcloud-server-0acd4b5f8202be8b3f3b4e6d7481e3d23e496b86.tar.gz
nextcloud-server-0acd4b5f8202be8b3f3b4e6d7481e3d23e496b86.zip
Merge pull request #31235 from nextcloud/techdebt/noid/extract-request-id
Extract request id handling to dedicated class so it can be injected without DB dependency
Diffstat (limited to 'tests/lib/AppFramework/DependencyInjection/DIContainerTest.php')
-rw-r--r--tests/lib/AppFramework/DependencyInjection/DIContainerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php b/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
index 3004123b81b..9a3d40d1c6b 100644
--- a/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
+++ b/tests/lib/AppFramework/DependencyInjection/DIContainerTest.php
@@ -30,7 +30,7 @@ use OC\AppFramework\Http\Request;
use OC\AppFramework\Middleware\Security\SecurityMiddleware;
use OCP\AppFramework\QueryException;
use OCP\IConfig;
-use OCP\Security\ISecureRandom;
+use OCP\IRequestId;
/**
* @group DB
@@ -69,7 +69,7 @@ class DIContainerTest extends \Test\TestCase {
public function testMiddlewareDispatcherIncludesSecurityMiddleware() {
$this->container['Request'] = new Request(
['method' => 'GET'],
- $this->createMock(ISecureRandom::class),
+ $this->createMock(IRequestId::class),
$this->createMock(IConfig::class)
);
$dispatcher = $this->container['MiddlewareDispatcher'];