From 5348f94228d608bf20db1cd5bb821c9c900930e0 Mon Sep 17 00:00:00 2001 From: dante di domenico Date: Fri, 16 Jan 2026 14:25:47 +0100 Subject: [PATCH] refactor: rename plugin class --- src/{Plugin.php => WebToolsPlugin.php} | 2 +- tests/TestCase/PluginTest.php | 10 +++++----- tests/bootstrap.php | 2 +- tests/test_app/TestApp/Application.php | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) rename src/{Plugin.php => WebToolsPlugin.php} (97%) diff --git a/src/Plugin.php b/src/WebToolsPlugin.php similarity index 97% rename from src/Plugin.php rename to src/WebToolsPlugin.php index 799cbabc..2b239481 100644 --- a/src/Plugin.php +++ b/src/WebToolsPlugin.php @@ -23,7 +23,7 @@ /** * Plugin class for BEdita\WebTools. */ -class Plugin extends BasePlugin +class WebToolsPlugin extends BasePlugin { /** * Load routes or not diff --git a/tests/TestCase/PluginTest.php b/tests/TestCase/PluginTest.php index db6ed701..d57d8275 100644 --- a/tests/TestCase/PluginTest.php +++ b/tests/TestCase/PluginTest.php @@ -15,7 +15,7 @@ namespace BEdita\WebTools\Test\TestCase; use BEdita\WebTools\Command\CacheClearallCommand; -use BEdita\WebTools\Plugin; +use BEdita\WebTools\WebToolsPlugin; use Cake\Console\CommandCollection; use Cake\TestSuite\TestCase; use PHPUnit\Framework\Attributes\CoversClass; @@ -23,11 +23,11 @@ use TestApp\Application; /** - * {@see BEdita\WebTools\Plugin} Test Case + * {@see BEdita\WebTools\WebToolsPlugin} Test Case */ -#[CoversClass(Plugin::class)] -#[CoversMethod(Plugin::class, 'bootstrap')] -#[CoversMethod(Plugin::class, 'console')] +#[CoversClass(WebToolsPlugin::class)] +#[CoversMethod(WebToolsPlugin::class, 'bootstrap')] +#[CoversMethod(WebToolsPlugin::class, 'console')] class PluginTest extends TestCase { /** diff --git a/tests/bootstrap.php b/tests/bootstrap.php index e8c22f20..951bdca8 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -13,7 +13,7 @@ * See LICENSE.LGPL or for more details. */ -use BEdita\WebTools\Plugin as WebToolsPlugin; +use BEdita\WebTools\WebToolsPlugin; use Cake\Cache\Cache; use Cake\Core\Configure; use Cake\Core\Plugin; diff --git a/tests/test_app/TestApp/Application.php b/tests/test_app/TestApp/Application.php index 862257c6..8a605ac4 100644 --- a/tests/test_app/TestApp/Application.php +++ b/tests/test_app/TestApp/Application.php @@ -3,7 +3,7 @@ namespace TestApp; -use BEdita\WebTools\Plugin; +use BEdita\WebTools\WebToolsPlugin; use Cake\Http\BaseApplication; use Cake\Http\MiddlewareQueue; use Cake\Routing\Middleware\RoutingMiddleware; @@ -24,7 +24,7 @@ class Application extends BaseApplication */ public function bootstrap(): void { - $this->addPlugin(new Plugin()); + $this->addPlugin(new WebToolsPlugin()); } /**