Dependecies for rclone
This commit is contained in:
@ -8,7 +8,7 @@ use App\CommandBackup;
|
||||
|
||||
class CommandBackupTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function testExecute()
|
||||
public function testInvalidConfig()
|
||||
{
|
||||
|
||||
$applicationd = new Application('backup', "1.1.1");
|
||||
@ -18,11 +18,8 @@ class CommandBackupTest extends \PHPUnit\Framework\TestCase
|
||||
|
||||
$command = $applicationd->find('backup');
|
||||
$commandTester = new CommandTester($command);
|
||||
$commandTester->execute([]);
|
||||
$commandTester->execute(['config'=>"empty"]);
|
||||
|
||||
$commandTester->assertCommandIsSuccessful();
|
||||
|
||||
// the output of the command in the console
|
||||
$output = $commandTester->getDisplay();
|
||||
$this->assertStringContainsString('backup', $output);
|
||||
}
|
||||
|
Reference in New Issue
Block a user