Update repository base code to be cleaner and make use of PHP 7 features

This commit is contained in:
Dane Everitt
2018-01-04 22:49:50 -06:00
parent 0ec5a4e08c
commit 60eb60013c
96 changed files with 1048 additions and 1785 deletions

View File

@@ -76,7 +76,7 @@ class SubuserControllerTest extends ControllerTestCase
$this->mockInjectJavascript();
$controller->shouldReceive('authorize')->with('list-subusers', $server)->once()->andReturnNull();
$this->repository->shouldReceive('findWhere')->with([['server_id', '=', $server->id]])->once()->andReturn([]);
$this->repository->shouldReceive('findWhere')->with([['server_id', '=', $server->id]])->once()->andReturn(collect());
$response = $controller->index($this->request);
$this->assertIsViewResponse($response);