aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Group/MetaDataTest.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-06-12 18:34:54 +0200
committerRobin Appelman <robin@icewind.nl>2025-06-12 18:38:29 +0200
commit3561937816578a699008c010829142a01580e7bf (patch)
tree83544b8fccc08e8bb73b81ddbc426180f02bd13b /tests/lib/Group/MetaDataTest.php
parent3cc34ac29da76e17952bfc84ddc1a5f066680d8f (diff)
downloadnextcloud-server-rector-tests.tar.gz
nextcloud-server-rector-tests.zip
chore: run rector on tests with new rulerector-tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Group/MetaDataTest.php')
-rw-r--r--tests/lib/Group/MetaDataTest.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/tests/lib/Group/MetaDataTest.php b/tests/lib/Group/MetaDataTest.php
index f02aa146307..1b58432fd88 100644
--- a/tests/lib/Group/MetaDataTest.php
+++ b/tests/lib/Group/MetaDataTest.php
@@ -38,23 +38,14 @@ class MetaDataTest extends \Test\TestCase {
->getMock();
$group->expects($this->exactly(6))
- ->method('getGID')
- ->will($this->onConsecutiveCalls(
- 'admin', 'admin',
- 'g2', 'g2',
- 'g3', 'g3'));
+ ->method('getGID')->willReturnOnConsecutiveCalls('admin', 'admin', 'g2', 'g2', 'g3', 'g3');
$group->expects($this->exactly(3))
- ->method('getDisplayName')
- ->will($this->onConsecutiveCalls(
- 'admin',
- 'g2',
- 'g3'));
+ ->method('getDisplayName')->willReturnOnConsecutiveCalls('admin', 'g2', 'g3');
$group->expects($this->exactly($countCallCount))
->method('count')
- ->with('')
- ->will($this->onConsecutiveCalls(2, 3, 5));
+ ->with('')->willReturnOnConsecutiveCalls(2, 3, 5);
return $group;
}