1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Fixed issues found from tests

This commit is contained in:
Dan Brown
2023-02-06 20:41:33 +00:00
parent 9ca088a4e2
commit 5e8ec56196
9 changed files with 112 additions and 118 deletions

View File

@@ -19,6 +19,7 @@ use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Http;
use League\CommonMark\ConfigurableEnvironmentInterface;
use League\CommonMark\Environment\Environment;
class ThemeTest extends TestCase
{
@@ -57,7 +58,7 @@ class ThemeTest extends TestCase
{
$callbackCalled = false;
$callback = function ($environment) use (&$callbackCalled) {
$this->assertInstanceOf(ConfigurableEnvironmentInterface::class, $environment);
$this->assertInstanceOf(Environment::class, $environment);
$callbackCalled = true;
return $environment;