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:
15
tests/Commands/UpgradeDatabaseEncodingCommandTest.php
Normal file
15
tests/Commands/UpgradeDatabaseEncodingCommandTest.php
Normal 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;');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user