aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-03-03 12:22:27 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-03-08 17:13:50 +0100
commitd80f13ef99983b85895f65787c8bc61359b949a1 (patch)
tree5c6dce00c9a894dfd5832bec8e89c03b1814ed2a /tests
parent9440e9bb1e9079e9b6217788e89a398cc272320c (diff)
downloadnextcloud-server-d80f13ef99983b85895f65787c8bc61359b949a1.tar.gz
nextcloud-server-d80f13ef99983b85895f65787c8bc61359b949a1.zip
Fix Metadata tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Group/MetaDataTest.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/lib/Group/MetaDataTest.php b/tests/lib/Group/MetaDataTest.php
index 04d2ff807b4..53a3c792002 100644
--- a/tests/lib/Group/MetaDataTest.php
+++ b/tests/lib/Group/MetaDataTest.php
@@ -53,13 +53,20 @@ class MetaDataTest extends \Test\TestCase {
->disableOriginalConstructor()
->getMock();
- $group->expects($this->exactly(9))
+ $group->expects($this->exactly(6))
->method('getGID')
->will($this->onConsecutiveCalls(
'admin', 'admin', 'admin',
'g2', 'g2', 'g2',
'g3', 'g3', 'g3'));
+ $group->expects($this->exactly(3))
+ ->method('getDisplayName')
+ ->will($this->onConsecutiveCalls(
+ 'admin',
+ 'g2',
+ 'g3'));
+
$group->expects($this->exactly($countCallCount))
->method('count')
->with('')