File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 55use Backstage \Fields \Plugins \JumpAnchorRichContentPlugin ;
66use Filament \Support \Facades \FilamentAsset ;
77use Illuminate \Support \Facades \Facade ;
8- use Mockery ;
98use PHPUnit \Framework \TestCase ;
109
1110class JumpAnchorPluginTest extends TestCase
@@ -20,18 +19,18 @@ protected function setUp(): void
2019 $ app ->singleton ('filament.assets ' , function () {
2120 return new \Filament \Support \Assets \AssetManager ;
2221 });
23-
22+
2423 // Mock the translator service
2524 $ translator = \Mockery::mock (\Illuminate \Contracts \Translation \Translator::class);
2625 $ translator ->shouldReceive ('get ' )->andReturn ('Jump Anchor ' );
2726 $ translator ->shouldReceive ('choice ' )->andReturn ('Jump Anchor ' );
2827 $ translator ->shouldReceive ('trans ' )->andReturn ('Jump Anchor ' );
2928 $ translator ->shouldReceive ('transChoice ' )->andReturn ('Jump Anchor ' );
30-
29+
3130 $ app ->singleton ('translator ' , function () use ($ translator ) {
3231 return $ translator ;
3332 });
34-
33+
3534 Facade::setFacadeApplication ($ app );
3635 }
3736 }
You can’t perform that action at this time.
0 commit comments