Arthur Schiwon
10 years ago
committed by
Joas Schilling
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with
6 additions and
11 deletions
-
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()) |
|
|
|
|