]> source.dussan.org Git - nextcloud-server.git/commitdiff
adjust test
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Sat, 20 Aug 2016 21:45:31 +0000 (23:45 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 22 Aug 2016 06:29:49 +0000 (08:29 +0200)
tests/lib/Settings/ManagerTest.php

index 4728784167a78fa9a54827880e8d9584f300a1a2..942a2bb63e706e12079a31ec19e4f932a6338130 100644 (file)
@@ -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())