mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 14:07:47 +08:00
Fied broken test
This commit is contained in:
parent
067f87eacb
commit
903bb27697
|
@ -5,11 +5,10 @@ use Flarum\Admin\Middleware\AuthenticateWithCookie;
|
||||||
use Flarum\Admin\Middleware\RequireAdministrateAbility;
|
use Flarum\Admin\Middleware\RequireAdministrateAbility;
|
||||||
use Flarum\Core\Access\Gate;
|
use Flarum\Core\Access\Gate;
|
||||||
use Flarum\Core\Exception\PermissionDeniedException;
|
use Flarum\Core\Exception\PermissionDeniedException;
|
||||||
use Illuminate\Contracts\Container\Container;
|
|
||||||
use Mockery as m;
|
use Mockery as m;
|
||||||
use Psr\Http\Message\ResponseInterface;
|
use Psr\Http\Message\ResponseInterface;
|
||||||
use Psr\Http\Message\ServerRequestInterface;
|
use Psr\Http\Message\ServerRequestInterface;
|
||||||
use tests\Test\TestCase;
|
use Tests\Test\TestCase;
|
||||||
|
|
||||||
class RequireAdministrateAbilityTest extends TestCase
|
class RequireAdministrateAbilityTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace Tests\Flarum\Core\Settings;
|
||||||
use Flarum\Settings\DatabaseSettingsRepository;
|
use Flarum\Settings\DatabaseSettingsRepository;
|
||||||
use Illuminate\Database\ConnectionInterface;
|
use Illuminate\Database\ConnectionInterface;
|
||||||
use Mockery as m;
|
use Mockery as m;
|
||||||
use tests\Test\TestCase;
|
use Tests\Test\TestCase;
|
||||||
|
|
||||||
class DatabaseSettingsRepositoryTest extends TestCase
|
class DatabaseSettingsRepositoryTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace Tests\Flarum\Core\Settings;
|
||||||
use Flarum\Settings\MemoryCacheSettingsRepository;
|
use Flarum\Settings\MemoryCacheSettingsRepository;
|
||||||
use Flarum\Settings\SettingsRepositoryInterface;
|
use Flarum\Settings\SettingsRepositoryInterface;
|
||||||
use Mockery as m;
|
use Mockery as m;
|
||||||
use tests\Test\TestCase;
|
use Tests\Test\TestCase;
|
||||||
|
|
||||||
class MemoryCacheSettingsRepositoryTest extends TestCase
|
class MemoryCacheSettingsRepositoryTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,7 @@ class MemoryCacheSettingsRepositoryTest extends TestCase
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$this->baseRepository = m::mock(\Flarum\Settings\SettingsRepositoryInterface::class);
|
$this->baseRepository = m::mock(SettingsRepositoryInterface::class);
|
||||||
$this->repository = new MemoryCacheSettingsRepository($this->baseRepository);
|
$this->repository = new MemoryCacheSettingsRepository($this->baseRepository);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user