1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Covered untested commands with testing

This commit is contained in:
Dan Brown
2023-05-24 10:34:43 +01:00
parent 3b31ac75ec
commit 0704f1bd0d
6 changed files with 141 additions and 2 deletions

View File

@ -0,0 +1,15 @@
<?php
namespace Tests\Commands;
use Tests\TestCase;
class UpgradeDatabaseEncodingCommandTest extends TestCase
{
public function test_command_outputs_sql()
{
$this->artisan('bookstack:db-utf8mb4')
->expectsOutputToContain('ALTER DATABASE')
->expectsOutputToContain('ALTER TABLE `users` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;');
}
}