More fixes for broken unit tests
This commit is contained in:
parent
b9eb87deaa
commit
83efb2d7b6
10 changed files with 56 additions and 213 deletions
|
@ -57,8 +57,8 @@ class ServerConfigurationStructureServiceTest extends TestCase
|
|||
$this->assertArrayHasKey('suspended', $response);
|
||||
$this->assertArrayHasKey('environment', $response);
|
||||
$this->assertArrayHasKey('invocation', $response);
|
||||
$this->assertArrayHasKey('skip_egg_scripts', $response);
|
||||
$this->assertArrayHasKey('build', $response);
|
||||
$this->assertArrayHasKey('service', $response);
|
||||
$this->assertArrayHasKey('container', $response);
|
||||
$this->assertArrayHasKey('allocations', $response);
|
||||
|
||||
|
@ -79,11 +79,6 @@ class ServerConfigurationStructureServiceTest extends TestCase
|
|||
'disk_space' => $model->disk,
|
||||
], $response['build']);
|
||||
|
||||
$this->assertSame([
|
||||
'egg' => $model->egg->uuid,
|
||||
'skip_scripts' => $model->skip_scripts,
|
||||
], $response['service']);
|
||||
|
||||
$this->assertSame([
|
||||
'image' => $model->image,
|
||||
'oom_disabled' => $model->oom_disabled,
|
||||
|
@ -103,6 +98,6 @@ class ServerConfigurationStructureServiceTest extends TestCase
|
|||
*/
|
||||
private function getService(): ServerConfigurationStructureService
|
||||
{
|
||||
return new ServerConfigurationStructureService($this->repository, $this->environment);
|
||||
return new ServerConfigurationStructureService($this->environment);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue