aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Http/RequestIdTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2025-03-28 00:28:33 +0100
committerJoas Schilling <coding@schilljs.com>2025-03-31 09:43:22 +0200
commit522be60ff0b2c8e6b3b881a642ea8026e3ad6038 (patch)
treef9e3e141074f0bb0b90d6587c8d624576e48f7f3 /tests/lib/AppFramework/Http/RequestIdTest.php
parent9ccb70174c139fe8b30f960edc0604f727c5e038 (diff)
downloadnextcloud-server-techdebt/noid/prepare-phpunit10.tar.gz
nextcloud-server-techdebt/noid/prepare-phpunit10.zip
fix(phpunit): Remove some more withConsecutive callstechdebt/noid/prepare-phpunit10
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/AppFramework/Http/RequestIdTest.php')
-rw-r--r--tests/lib/AppFramework/Http/RequestIdTest.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/lib/AppFramework/Http/RequestIdTest.php b/tests/lib/AppFramework/Http/RequestIdTest.php
index b3cfe2a8f4a..9cfd3b1785c 100644
--- a/tests/lib/AppFramework/Http/RequestIdTest.php
+++ b/tests/lib/AppFramework/Http/RequestIdTest.php
@@ -49,11 +49,7 @@ class RequestIdTest extends \Test\TestCase {
$this->secureRandom->expects($this->once())
->method('generate')
->with('20')
- ->willReturnOnConsecutiveCalls(
- 'GeneratedByNextcloudItself1',
- 'GeneratedByNextcloudItself2',
- 'GeneratedByNextcloudItself3'
- );
+ ->willReturn('GeneratedByNextcloudItself1');
$this->assertSame('GeneratedByNextcloudItself1', $requestId->getId());
$this->assertSame('GeneratedByNextcloudItself1', $requestId->getId());