summaryrefslogtreecommitdiffstats
path: root/apps/oauth2/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-08-02 15:27:52 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-08-02 15:27:52 +0200
commit539162ba8ba7f8d1902310000b8ce2284f2124fd (patch)
tree7341561dbcc7b44a9320b0060d31c6d194e3694a /apps/oauth2/tests
parente750137a9ae695f2d9daa5188bf66709da1561fc (diff)
downloadnextcloud-server-539162ba8ba7f8d1902310000b8ce2284f2124fd.tar.gz
nextcloud-server-539162ba8ba7f8d1902310000b8ce2284f2124fd.zip
Remove at matchers from tests in:
* apps/oauth2 * tests/Test/Repair/Owncloud Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/oauth2/tests')
-rw-r--r--apps/oauth2/tests/Controller/SettingsControllerTest.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/oauth2/tests/Controller/SettingsControllerTest.php b/apps/oauth2/tests/Controller/SettingsControllerTest.php
index 4954d379f9d..216655190ae 100644
--- a/apps/oauth2/tests/Controller/SettingsControllerTest.php
+++ b/apps/oauth2/tests/Controller/SettingsControllerTest.php
@@ -72,15 +72,12 @@ class SettingsControllerTest extends TestCase {
public function testAddClient() {
$this->secureRandom
- ->expects($this->at(0))
+ ->expects($this->exactly(2))
->method('generate')
->with(64, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789')
- ->willReturn('MySecret');
- $this->secureRandom
- ->expects($this->at(1))
- ->method('generate')
- ->with(64, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789')
- ->willReturn('MyClientIdentifier');
+ ->willReturnOnConsecutiveCalls(
+ 'MySecret',
+ 'MyClientIdentifier');
$client = new Client();
$client->setName('My Client Name');