mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-12 21:43:48 +08:00
16 lines
400 B
PHP
16 lines
400 B
PHP
|
<?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;');
|
||
|
}
|
||
|
}
|