mirror of
https://github.com/flarum/core.git
synced 2025-08-05 16:07:34 +02:00
feat(testing): add a trait to flush the formatter cache in tests (#3811)
This commit is contained in:
@@ -11,16 +11,16 @@ namespace Flarum\Tests\integration\extenders;
|
||||
|
||||
use Flarum\Extend;
|
||||
use Flarum\Formatter\Formatter;
|
||||
use Flarum\Testing\integration\RefreshesFormatterCache;
|
||||
use Flarum\Testing\integration\TestCase;
|
||||
|
||||
class FormatterTest extends TestCase
|
||||
{
|
||||
use RefreshesFormatterCache;
|
||||
|
||||
protected function getFormatter()
|
||||
{
|
||||
$formatter = $this->app()->getContainer()->make(Formatter::class);
|
||||
$formatter->flush();
|
||||
|
||||
return $formatter;
|
||||
return $this->app()->getContainer()->make(Formatter::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user