Add database management back to front-end and begin some refactoring
Here we go again boys...
This commit is contained in:
parent
2b80de03df
commit
97dc0519d6
32 changed files with 774 additions and 407 deletions
|
@ -13,7 +13,6 @@ use Mockery as m;
|
|||
use Tests\TestCase;
|
||||
use Prologue\Alerts\AlertsMessageBag;
|
||||
use Tests\Assertions\ControllerAssertionsTrait;
|
||||
use Pterodactyl\Services\Database\DatabaseHostService;
|
||||
use Pterodactyl\Http\Controllers\Admin\DatabaseController;
|
||||
use Pterodactyl\Contracts\Repository\LocationRepositoryInterface;
|
||||
use Pterodactyl\Contracts\Repository\DatabaseHostRepositoryInterface;
|
||||
|
@ -43,7 +42,7 @@ class DatabaseControllerTest extends TestCase
|
|||
protected $repository;
|
||||
|
||||
/**
|
||||
* @var \Pterodactyl\Services\Database\DatabaseHostService
|
||||
* @var \Pterodactyl\Services\Databases\HostsUpdateService
|
||||
*/
|
||||
protected $service;
|
||||
|
||||
|
@ -57,7 +56,7 @@ class DatabaseControllerTest extends TestCase
|
|||
$this->alert = m::mock(AlertsMessageBag::class);
|
||||
$this->locationRepository = m::mock(LocationRepositoryInterface::class);
|
||||
$this->repository = m::mock(DatabaseHostRepositoryInterface::class);
|
||||
$this->service = m::mock(DatabaseHostService::class);
|
||||
$this->service = m::mock(HostUpdateService::class);
|
||||
|
||||
$this->controller = new DatabaseController(
|
||||
$this->alert,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue