From 3dbca34234dad78c19a6bc2fd960738acdebaf76 Mon Sep 17 00:00:00 2001 From: Vladimir Bryzgalov Date: Tue, 12 May 2026 20:10:42 +0500 Subject: [PATCH] feat(wpmc S3): Plugin::boot() wires ShortcodeDmr Co-Authored-By: Claude Sonnet 4.6 --- includes/class-plugin.php | 1 + tests/PluginBootShortcodeDmrTest.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tests/PluginBootShortcodeDmrTest.php diff --git a/includes/class-plugin.php b/includes/class-plugin.php index b6381c8..481a57d 100644 --- a/includes/class-plugin.php +++ b/includes/class-plugin.php @@ -50,6 +50,7 @@ final class Plugin Taxonomy::register(); PostType::register(); FieldGroup::register(); + ShortcodeDmr::register(); } private function dependencies_satisfied(): bool diff --git a/tests/PluginBootShortcodeDmrTest.php b/tests/PluginBootShortcodeDmrTest.php new file mode 100644 index 0000000..df58fb5 --- /dev/null +++ b/tests/PluginBootShortcodeDmrTest.php @@ -0,0 +1,28 @@ +getProperty('booted'); + $prop->setValue($plugin, false); + + $plugin->boot(); + + self::assertNotFalse( + has_action('init', ['WPMultiCity\\ShortcodeDmr', 'do_register']), + 'boot() must register ShortcodeDmr on init' + ); + } +}