diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-08-20 23:45:31 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-08-22 08:29:49 +0200 |
commit | baa91809bd11a78a53c8b39e6b2f73ff41b7f925 (patch) | |
tree | fd447ee0920465ffbe00e6a5499417773550c7d3 /tests | |
parent | 7972fa552724ce63a4f51b864c28bd086fc15cb7 (diff) | |
download | nextcloud-server-baa91809bd11a78a53c8b39e6b2f73ff41b7f925.tar.gz nextcloud-server-baa91809bd11a78a53c8b39e6b2f73ff41b7f925.zip |
adjust test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Settings/ManagerTest.php | 17 |
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()) |