summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-08-20 23:45:31 +0200
committerJoas Schilling <coding@schilljs.com>2016-08-22 08:29:49 +0200
commitbaa91809bd11a78a53c8b39e6b2f73ff41b7f925 (patch)
treefd447ee0920465ffbe00e6a5499417773550c7d3 /tests
parent7972fa552724ce63a4f51b864c28bd086fc15cb7 (diff)
downloadnextcloud-server-baa91809bd11a78a53c8b39e6b2f73ff41b7f925.tar.gz
nextcloud-server-baa91809bd11a78a53c8b39e6b2f73ff41b7f925.zip
adjust test
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Settings/ManagerTest.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/tests/lib/Settings/ManagerTest.php b/tests/lib/Settings/ManagerTest.php
index 4728784167a..942a2bb63e7 100644
--- a/tests/lib/Settings/ManagerTest.php
+++ b/tests/lib/Settings/ManagerTest.php
@@ -139,22 +139,17 @@ class ManagerTest extends TestCase {
$expr = $this->getMockBuilder('OCP\DB\QueryBuilder\IExpressionBuilder')->getMock();
$qb
->expects($this->once())
- ->method('select')
- ->with(['s.class', 's.priority'])
- ->willReturn($qb);
- $qb
- ->expects($this->exactly(2))
- ->method('from')
+ ->method('selectDistinct')
+ ->with('s.class')
->willReturn($qb);
$qb
- ->expects($this->at(1))
- ->method('from')
- ->with('admin_sections', 's')
+ ->expects($this->once())
+ ->method('addSelect')
+ ->with('s.priority')
->willReturn($qb);
$qb
- ->expects($this->at(2))
+ ->expects($this->exactly(2))
->method('from')
- ->with('admin_settings', 'f')
->willReturn($qb);
$qb
->expects($this->once())