mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Added force option for update-url command
Includes test to cover. Closes #4223
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace Tests\Commands;
|
||||
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Symfony\Component\Console\Exception\RuntimeException;
|
||||
use Tests\TestCase;
|
||||
|
||||
@ -34,6 +35,13 @@ class UpdateUrlCommandTest extends 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');
|
||||
|
Reference in New Issue
Block a user