Skip to content

Commit 8df5d5b

Browse files
committed
Remove unnecessary test and cleanup rebuild command
1 parent ccda2b6 commit 8df5d5b

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

app/Console/Commands/Server/RebuildServerCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ public function handle()
8686
{
8787
$servers = $this->getServersToProcess();
8888
$bar = $this->output->createProgressBar(count($servers));
89-
$results = [];
9089

91-
$servers->each(function ($server) use ($bar, &$results) {
90+
$servers->each(function ($server) use ($bar) {
9291
$bar->clear();
9392
$json = [
9493
'build' => [

tests/Unit/Services/Servers/EnvironmentServiceTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,4 @@ public function testProcessShouldAcceptAnIntegerInPlaceOfAServerModel()
142142

143143
$this->assertTrue(is_array($response), 'Assert that response is an array.');
144144
}
145-
146-
/**
147-
* Test that an exception is thrown when no model or valid ID is provided.
148-
*
149-
* @expectedException \InvalidArgumentException
150-
*/
151-
public function testProcessShouldThrowExceptionIfInvalidServerIsProvided()
152-
{
153-
$this->service->process('abcd');
154-
}
155145
}

0 commit comments

Comments
 (0)