]> BookStack Code Mirror - bookstack/blob - tests/Commands/UpgradeDatabaseEncodingCommandTest.php
Merge pull request #4262 from BookStackApp/command_cleanup
[bookstack] / tests / Commands / UpgradeDatabaseEncodingCommandTest.php
1 <?php
2
3 namespace Tests\Commands;
4
5 use Tests\TestCase;
6
7 class UpgradeDatabaseEncodingCommandTest extends TestCase
8 {
9     public function test_command_outputs_sql()
10     {
11         $this->artisan('bookstack:db-utf8mb4')
12             ->expectsOutputToContain('ALTER DATABASE')
13             ->expectsOutputToContain('ALTER TABLE `users` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;');
14     }
15 }