Remove unnecessary test and cleanup rebuild command

This commit is contained in:
Dane Everitt 2017-09-19 22:15:52 -05:00
parent ccda2b63fa
commit 8df5d5beaf
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 1 additions and 12 deletions

View file

@ -86,9 +86,8 @@ class RebuildServerCommand extends Command
{ {
$servers = $this->getServersToProcess(); $servers = $this->getServersToProcess();
$bar = $this->output->createProgressBar(count($servers)); $bar = $this->output->createProgressBar(count($servers));
$results = [];
$servers->each(function ($server) use ($bar, &$results) { $servers->each(function ($server) use ($bar) {
$bar->clear(); $bar->clear();
$json = [ $json = [
'build' => [ 'build' => [

View file

@ -142,14 +142,4 @@ class EnvironmentServiceTest extends TestCase
$this->assertTrue(is_array($response), 'Assert that response is an array.'); $this->assertTrue(is_array($response), 'Assert that response is an array.');
} }
/**
* Test that an exception is thrown when no model or valid ID is provided.
*
* @expectedException \InvalidArgumentException
*/
public function testProcessShouldThrowExceptionIfInvalidServerIsProvided()
{
$this->service->process('abcd');
}
} }