$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())