mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-09 18:03:44 +02:00
Refactor startup modification and environment variable services
Better setup, more flexibility, more tests.
This commit is contained in:
@@ -50,7 +50,7 @@ class ServerConfigurationStructureServiceTest extends TestCase
|
||||
})->toArray();
|
||||
|
||||
$this->repository->shouldReceive('getDataForCreation')->with($model)->once()->andReturn($model);
|
||||
$this->environment->shouldReceive('process')->with($model)->once()->andReturn(['environment_array']);
|
||||
$this->environment->shouldReceive('handle')->with($model)->once()->andReturn(['environment_array']);
|
||||
|
||||
$response = $this->getService()->handle($model);
|
||||
$this->assertNotEmpty($response);
|
||||
|
||||
Reference in New Issue
Block a user