@@ -12,12 +12,12 @@ class JumpAnchorPluginTest extends TestCase
1212 protected function setUp (): void
1313 {
1414 parent ::setUp ();
15-
15+
1616 // Set up a minimal Laravel application context for facades
17- if (!Facade::getFacadeApplication ()) {
17+ if (! Facade::getFacadeApplication ()) {
1818 $ app = new \Illuminate \Foundation \Application (realpath (__DIR__ . '/../ ' ));
1919 $ app ->singleton ('filament.assets ' , function () {
20- return new \Filament \Support \Assets \AssetManager () ;
20+ return new \Filament \Support \Assets \AssetManager ;
2121 });
2222 Facade::setFacadeApplication ($ app );
2323 }
@@ -26,21 +26,21 @@ protected function setUp(): void
2626 public function test_plugin_can_be_instantiated ()
2727 {
2828 $ plugin = JumpAnchorRichContentPlugin::get ();
29-
29+
3030 $ this ->assertInstanceOf (JumpAnchorRichContentPlugin::class, $ plugin );
3131 }
3232
3333 public function test_plugin_has_correct_id ()
3434 {
35- $ plugin = new JumpAnchorRichContentPlugin () ;
36-
35+ $ plugin = new JumpAnchorRichContentPlugin ;
36+
3737 $ this ->assertEquals ('jump-anchor ' , $ plugin ->getId ());
3838 }
3939
4040 public function test_plugin_returns_empty_php_extensions ()
4141 {
42- $ plugin = new JumpAnchorRichContentPlugin () ;
43-
42+ $ plugin = new JumpAnchorRichContentPlugin ;
43+
4444 $ this ->assertIsArray ($ plugin ->getTipTapPhpExtensions ());
4545 $ this ->assertEmpty ($ plugin ->getTipTapPhpExtensions ());
4646 }
@@ -51,33 +51,33 @@ public function test_plugin_returns_js_extensions()
5151 FilamentAsset::shouldReceive ('getScriptSrc ' )
5252 ->with ('rich-content-plugins/jump-anchor ' )
5353 ->andReturn ('/path/to/jump-anchor.js ' );
54-
55- $ plugin = new JumpAnchorRichContentPlugin () ;
56-
54+
55+ $ plugin = new JumpAnchorRichContentPlugin ;
56+
5757 $ extensions = $ plugin ->getTipTapJsExtensions ();
58-
58+
5959 $ this ->assertIsArray ($ extensions );
6060 $ this ->assertNotEmpty ($ extensions );
6161 $ this ->assertEquals ('/path/to/jump-anchor.js ' , $ extensions [0 ]);
6262 }
6363
6464 public function test_plugin_returns_editor_tools ()
6565 {
66- $ plugin = new JumpAnchorRichContentPlugin () ;
67-
66+ $ plugin = new JumpAnchorRichContentPlugin ;
67+
6868 $ tools = $ plugin ->getEditorTools ();
69-
69+
7070 $ this ->assertIsArray ($ tools );
7171 $ this ->assertCount (1 , $ tools );
7272 $ this ->assertEquals ('jumpAnchor ' , $ tools [0 ]->getName ());
7373 }
7474
7575 public function test_plugin_returns_editor_actions ()
7676 {
77- $ plugin = new JumpAnchorRichContentPlugin () ;
78-
77+ $ plugin = new JumpAnchorRichContentPlugin ;
78+
7979 $ actions = $ plugin ->getEditorActions ();
80-
80+
8181 $ this ->assertIsArray ($ actions );
8282 $ this ->assertCount (1 , $ actions );
8383 $ this ->assertEquals ('jumpAnchor ' , $ actions [0 ]->getName ());
0 commit comments