tests/TestCase.php
<?php
namespace EscolaLms\Images\Tests;
use EscolaLms\Core\Models\User;
use EscolaLms\Settings\EscolaLmsSettingsServiceProvider;
use EscolaLms\Core\Tests\TestCase as CoreTestCase;
use EscolaLms\Images\EscolaLmsImagesServiceProvider;
class TestCase extends CoreTestCase
{
protected function setUp(): void
{
parent::setUp();
}
protected function getPackageProviders($app)
{
return [
...parent::getPackageProviders($app),
EscolaLmsImagesServiceProvider::class,
EscolaLmsSettingsServiceProvider::class,
];
}
protected function getEnvironmentSetUp($app)
{
$app['config']->set('auth.providers.users.model', User::class);
$app['config']->set('passport.client_uuids', true);
}
}