mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-26 11:02:31 +01:00
Remove unnecessary test and cleanup rebuild command
This commit is contained in:
parent
ccda2b63fa
commit
8df5d5beaf
@ -86,9 +86,8 @@ class RebuildServerCommand extends Command
|
||||
{
|
||||
$servers = $this->getServersToProcess();
|
||||
$bar = $this->output->createProgressBar(count($servers));
|
||||
$results = [];
|
||||
|
||||
$servers->each(function ($server) use ($bar, &$results) {
|
||||
$servers->each(function ($server) use ($bar) {
|
||||
$bar->clear();
|
||||
$json = [
|
||||
'build' => [
|
||||
|
@ -142,14 +142,4 @@ class EnvironmentServiceTest extends TestCase
|
||||
|
||||
$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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user