namespace Tests\Commands;
+use Illuminate\Support\Facades\Artisan;
use Symfony\Component\Console\Exception\RuntimeException;
use Tests\TestCase;
$this->artisan('bookstack:update-url https://cats.example.com');
}
+ public function test_command_force_option_skips_prompt()
+ {
+ $this->artisan('bookstack:update-url --force https://cats.example.com/donkey https://cats.example.com/monkey')
+ ->expectsOutputToContain('URL update procedure complete')
+ ->assertSuccessful();
+ }
+
public function test_command_updates_settings()
{
setting()->put('my-custom-item', 'https://example.com/donkey/cat');