From cc6653e45c86e8019846274b04154c96e34632cf Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 18 Feb 2022 10:21:00 +0100 Subject: Adjust and add unit tests Signed-off-by: Joas Schilling --- tests/lib/AppFramework/DependencyInjection/DIContainerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lib/AppFramework/DependencyInjection/DIContainerTest.php') 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']; -- cgit v1.2.3