@@ -22,12 +22,12 @@ |
||
| 22 | 22 | $mock = $this->getMockForTrait('\Jalle19\StatusManager\Database\LimitTrait'); |
| 23 | 23 | |
| 24 | 24 | $mock->expects($this->once()) |
| 25 | - ->method('limit'); |
|
| 25 | + ->method('limit'); |
|
| 26 | 26 | |
| 27 | 27 | $mock->filterByLimit(10); |
| 28 | 28 | |
| 29 | 29 | $mock->expects($this->never()) |
| 30 | - ->method('limit'); |
|
| 30 | + ->method('limit'); |
|
| 31 | 31 | |
| 32 | 32 | $mock->filterByLimit(null); |
| 33 | 33 | } |
@@ -22,11 +22,11 @@ |
||
| 22 | 22 | { |
| 23 | 23 | /* @var \PHPUnit_Framework_MockObject_MockObject|SubscriptionQuery $mock */ |
| 24 | 24 | $mock = $this->getMockBuilder(SubscriptionQuery::class) |
| 25 | - ->setMethods(['filterByStopped']) |
|
| 26 | - ->getMock(); |
|
| 25 | + ->setMethods(['filterByStopped']) |
|
| 26 | + ->getMock(); |
|
| 27 | 27 | |
| 28 | 28 | $mock->expects($expects) |
| 29 | - ->method('filterByStopped'); |
|
| 29 | + ->method('filterByStopped'); |
|
| 30 | 30 | |
| 31 | 31 | $mock->filterByTimeFrame(new TimeFrame($timeFrame)); |
| 32 | 32 | } |
@@ -20,12 +20,12 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /* @var \PHPUnit_Framework_MockObject_MockObject|UserQuery $mock */ |
| 22 | 22 | $mock = $this->getMockBuilder(UserQuery::class) |
| 23 | - ->setMethods(['filterByName']) |
|
| 24 | - ->getMock(); |
|
| 23 | + ->setMethods(['filterByName']) |
|
| 24 | + ->getMock(); |
|
| 25 | 25 | |
| 26 | 26 | // There should be four filter calls for three passed names, since the DVR user is added transparently |
| 27 | 27 | $mock->expects($this->exactly(4)) |
| 28 | - ->method('filterByName'); |
|
| 28 | + ->method('filterByName'); |
|
| 29 | 29 | |
| 30 | 30 | $ignoredUsers = [ |
| 31 | 31 | 'foo', |
@@ -127,8 +127,8 @@ |
||
| 127 | 127 | $ignoredUsers = $this->configuration->getInstanceByName($instanceName)->getIgnoredUsers(); |
| 128 | 128 | |
| 129 | 129 | return UserQuery::create() |
| 130 | - ->filterIgnoredUsers($ignoredUsers) |
|
| 131 | - ->findByInstanceName($instanceName)->getArrayCopy(); |
|
| 130 | + ->filterIgnoredUsers($ignoredUsers) |
|
| 131 | + ->findByInstanceName($instanceName)->getArrayCopy(); |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | } |