From 464d254f1cb89f9c1710271b3298ab47d4f93582 Mon Sep 17 00:00:00 2001 From: Vladimir Bryzgalov Date: Tue, 12 May 2026 20:06:07 +0500 Subject: [PATCH] test(wpmc S3): lock add_shortcode call in ShortcodeDmr::do_register --- tests/ShortcodeDmrTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/ShortcodeDmrTest.php b/tests/ShortcodeDmrTest.php index 5a819f7..a11b8bb 100644 --- a/tests/ShortcodeDmrTest.php +++ b/tests/ShortcodeDmrTest.php @@ -16,4 +16,15 @@ final class ShortcodeDmrTest extends TestCase 'ShortcodeDmr::register() must hook init' ); } + + public function test_do_register_registers_shortcode(): void + { + \Brain\Monkey\Functions\expect('add_shortcode') + ->once() + ->with('shortcode_dmr', [ShortcodeDmr::class, 'render']); + + ShortcodeDmr::do_register(); + + self::assertTrue(true); + } }